Merge #618: answer the regression question with a mutation in code review

This commit is contained in:
Addy Osmani authored and GitHub committed 2026-10-01 20:12:14 -07:00
commit 633ff8261f
1 file changed
+2
+2
View File
@@ -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: