Run mutation tests, fix surviving mutants until mutation score meets threshold.
Start the "Mutation Testing Pass" loop. - Goal: Mutation score meets the target threshold (default 85%) — surviving mutants are killed by strengthening tests. - Max iterations: 8 - Between iterations run: `npx stryker run --reporters clear-text` - Exit when: mutation score meets or exceeds threshold with no critical surviving mutants. Steps: 1. Run the mutation testing suite (Stryker, mutmut, or project equivalent) 2. If mutation score meets threshold, stop — exit condition met 3. Review surviving mutants — focus on those in critical business logic, not trivial mutations 4. For each surviving mutant: understand what code change it represents and why existing tests don't catch it 5. Write a test that specifically detects that mutation (asserts the exact behavior the mutant would break) 6. Run mutation testing again to confirm the mutant is now killed 7. Repeat for the next batch of surviving mutants Self-pacing instructions: After each iteration, run the check command, read the output, and only continue if the exit condition is not met. Stop when exit condition passes or max iterations reached. Give a short status update each pass.
How it works