fix(diffanalysis): don't count deleted tests as tests included #89
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/test-signal-deletions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
TestFilesChangedcounted every touched test file regardless of whether the diff added it or removed it, andHasTestskeyed off that total.A PR whose only test-file change was a deletion rendered:
Ripping tests out reported as the reassuring signal, on the line the model most likely reads as a proxy for whether the change was tested.
HasTestsis now net of deletions, the count reads "added or modified", and deleted test files get their own line so the removal is visible instead of absorbed into a positive number. A PR that adds one test and deletes another reports both.🤖 Generated with Claude Code
Automated review by pr-reviewer v0.41.3 | Safety Check | Claude Sonnet 5 | tracking id
r-6826be-ecee5fThis is an AI-generated review and may contain mistakes.
Status: ✅ Completed
✅ Verdict: LGTM — Small, correct, well-tested bugfix with no security or breaking-change concerns.
The change is a small, well-targeted logic fix:
TestFilesChangedno longer conflates deletions with additions for theHasTests/"Tests included" signal, and deleted test files now get their own line. Logic looks correct:HasTests = TestFilesChanged - TestFilesDeleted > 0correctly nets out deletions.HasTests, so mixed add+delete scenarios report both.No security issues, no accidentally committed files, no breaking API changes beyond an added struct field (
TestFilesDeleted) and a wording change in Format's output, which is the intended fix. Nothing alarming here.97fa477ed07f596d4e19Automated review by pr-reviewer v0.41.4 | Safety Check | Claude Sonnet 5 | tracking id
r-6831a9-76028bThis is an AI-generated review and may contain mistkaes.
Status: ✅ Completed
✅ Verdict: LGTM — Straightforward, well-tested bugfix with no signs of unrelated or risky changes.
This is a small, well-scoped fix:
HasTests/TestFilesChangednow correctly net out deleted test files, and the format output surfaces deletions separately instead of silently counting them as positive test signal. Logic looks correct (TestFilesChanged - TestFilesDeleted > 0), tests cover the deleted-only and mixed add+delete cases, and no unrelated changes or secrets are present. Nothing alarming here.