Mutation testing to validate test quality by introducing code changes and verifying tests catch them
Installation
npx claude-plugins install @jeremylongshore/claude-code-plugins-plus/mutation-test-runner
Contents
Folders: agents, skills
Files: LICENSE, README.md
Documentation
Validate test suite effectiveness through mutation testing - introducing code changes and verifying tests catch them.
Features
- Mutation generation - Arithmetic, logical, conditional mutations
- Test validation - Verify tests catch introduced bugs
- Mutation score calculation - Test quality metric
- Survivor analysis - Identify weak test coverage
- Framework support - Stryker, PITest, mutmut, Mutant
Installation
/plugin install mutation-test-runner@claude-code-plugins-plus
Usage
Run mutation testing on the validator module
Analyze mutation test results and suggest improvements
Mutation Types
- Arithmetic -
+→-,*→/ - Comparison -
>→>=,==→!= - Logical -
&&→||,!removal - Boolean -
true→false - Conditionals - Remove if statements
License
MIT
Included Skills
This plugin includes 1 skill definition:
running-mutation-tests
|
View skill definition
Mutation Test Runner
This skill provides automated assistance for mutation test runner tasks.
Prerequisites
Before using this skill, ensure you have:
- Test environment configured and accessible
- Required testing tools and frameworks installed
- Test data and fixtures prepared
- Appropriate permissions for test execution
- Network connectivity if testing external services
Instructions
Step 1: Prepare Test Environment
Set up the testing context:
- Use Read tool to examine configuration from {baseDir}/config/
- Validate test prerequisites are met
- Initialize test framework and load dependencies
- Configure test parameters and thresholds
Step 2: Execute Tests
Run the test suite:
- Use Bash(test:mutation-*) to invoke test framework
- Monitor test execution progress
- Capture test outputs and metrics
- Handle test failures and error conditions
Step 3: Analyze Results
Process test outcomes:
- Identify passed and failed tests
- Calculate success rate and performance metrics
- Detect patterns in failures
- Generate insights for improvement
Step 4: Generate Report
Document findings in {baseDir}/test-reports/:
- Test execution summary
- Detailed failure analysis
- Performance benchmarks
- Recommendations for fixes
Output
The skill generates comprehensive test results:
Test Summary
- Total tests executed
- Pass/fail counts and percentage
- Execution time metrics
- Resource utilization stats
Detailed Results
Each test includes:
- T