Mutation Testing Generator
When to Trigger
- •Test suite completion
- •"Check test quality"
What to Do
- •Config: Add Stryker (or similar) config: mutator (TypeScript), test runner (Jest/Vitest), files to mutate (exclude *.test.ts).
- •Thresholds: Set high/low/break for mutation score; document what they mean.
- •Run: Generate report; explain that surviving mutations mean tests didn’t catch that change (weak test or redundant code).
- •Focus: Suggest improving tests for frequently surviving mutations first.
Mutation testing is slow; run on subset or in nightly. Use for critical paths rather than entire codebase at first.