What problem does it solve?
Line coverage is a vanity metric that fails to detect test suites which execute code without asserting on correct behavior, a widespread issue with AI-generated tests that often produce tautological assertions and near-zero mutation scores despite high coverage.
Core Features & Use Cases
- Multi-language mutation testing: Integrates with industry-standard tools including Stryker (JS/TS), Stryker.NET (C#), PIT (Java/Kotlin), mutmut and Cosmic Ray (Python), mull (C/C++), and cargo-mutants (Rust) to run mutation sweeps across 7 language ecosystems.
- CI/CD quality gating: Enforces configurable mutation score thresholds for critical code paths (authentication, payment processing, access control) with support for PR-level incremental/diff mode to avoid slow full sweeps on every pull request, and scheduled nightly full runs for release-bound modules.
- AI test suite detection: Flags AI-generated test suites that exhibit the hallmark pattern of >90% line coverage paired with <40% mutation score, triggering mandatory regeneration of tests with intent-based prompts before merge.
- Regression tracking: Alerts on mutation score drops of more than 5 percentage points against baseline runs to catch silent test quality degradation over time.
Use case: For a fintech application processing customer payments, run mutation testing on the refund processing module to catch missing null-return assertions, blocking the release if the critical path mutation score falls below the 75% threshold.
Quick Start
Use the mutation-test-runner skill to run a mutation test sweep on your authentication module and report any surviving mutants on critical access control paths.