mirror of
https://github.com/addyosmani/agent-skills.git
synced 2026-10-26 15:05:04 +00:00
Merge #618: answer the regression question with a mutation in code review
This commit is contained in:
1 file changed
+2
@@ -161,6 +161,8 @@ Tests reveal intent and coverage:
|
||||
- Would the tests catch a regression if the code changed?
|
||||
```
|
||||
|
||||
Answer the last question by experiment, not by reading. Invert one condition the change adds (drop a negation, swap `&&` for `||`), run the suite, then restore the file from a copy. A mutation that stays green is a finding: name the test case that is missing. For a project-wide mutation score, see `constraint-driven-development`.
|
||||
|
||||
### Step 3: Review the Implementation
|
||||
|
||||
Walk through the code with the five axes in mind:
|
||||
|
||||
Reference in new issue
Block a user