Validate test quality through mutation testing
Validates test suite quality by introducing code mutations and verifying tests detect them.
/plugin marketplace add jeremylongshore/claude-code-plugins-plus/plugin install mutation-test-runner@claude-code-plugins-plusValidate test suite quality by introducing code mutations and verifying tests catch them.
Mutation testing modifies ("mutates") code to check if tests detect the changes:
+ to -, * to /> to >=, == to !=&& to ||, ! removaltrue to false++ to --// Original code
function isPositive(num) {
return num > 0;
}
// Mutation 1: Change > to >=
function isPositive(num) {
return num >= 0; // Should fail test for isPositive(0)
}
// Mutation 2: Change > to <
function isPositive(num) {
return num < 0; // Should fail all tests
}
Mutation Testing Report
=======================
Total Mutants: 150
Killed: 142 (94.7%)
Survived: 8 (5.3%)
Timeout: 0
No Coverage: 0
Mutation Score: 94.7%
Survived Mutants:
src/utils/validator.js:23
- Replaced > with >=
- Suggests missing boundary test
src/api/users.js:45
- Replaced && with ||
- Suggests missing logic test
Recommendations:
1. Add boundary test for validator edge case
2. Test logical conditions in user API
3. Overall test quality: Excellent (>90%)
Designs feature architectures by analyzing existing codebase patterns and conventions, then providing comprehensive implementation blueprints with specific files to create/modify, component designs, data flows, and build sequences