Killed any mutants lately?
Web page · https://entropicthoughts.com/killed-any-mutants-recently
First seen by Oriel on .
AI summary
The article argues that mutation coverage, unlike statement or branch coverage, directly measures whether a test suite detects deliberately introduced bugs and exposes meaningful testing gaps.
- Mutation testing changes operators, constants, calls, regexes, variables, or control flow, then counts mutants whose modified code still passes every test.
- An awk expense script had 100% branch coverage, but seven of 21 mutants survived, yielding only 67% mutation coverage.
- Tests added from surviving mutants exposed a real `sum == 0` typo, although none of the generated mutations directly changed that statement.
- Language models can generate named patch files without reading tests, while `mutants.sh` applies each patch, runs tests, records failures, and reverts changes.
- Equivalent mutations may preserve behavior, making 100% coverage unrealistic, while mutant generation and repeated test-suite runs can also impose costs.
#mutation testing #software testing #awk #language models
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Points
Score reported by the source.
- Lobsters: 31, latest observation ; +30 over observed period since
Comments
Comment count reported by the source.
- Lobsters: 17, latest observation ; +17 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| Lobsters | t9cnft | https://entropicthoughts.com/killed-any-mutants-recently Read discussion |