run_mutation_tests
Run mutation testing on a source and test file pair. Returns coverage metrics with auto-detected adapters for Python, JavaScript, TypeScript, Java, and Go.
Instructions
Run mutation testing on a source+test file pair and return coverage metrics.
Supports mutmut (Python), Stryker (JS/TS), PIT (Java), and gremlins (Go). The adapter is auto-detected based on language and tool availability.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | Yes | Language of the files (python | javascript | typescript | java | go) | |
| test_file | Yes | Path to the test file to run against mutants | |
| block_below | No | Score below which the result is flagged as blocked (default: 0.50) | |
| project_dir | No | Project root directory (defaults to cwd) | |
| source_file | Yes | Path to the source file to mutate | |
| minimum_score | No | Threshold to pass (default: 0.70 = 70% killed) | |
| timeout_seconds | No | Mutation run timeout in seconds (default: 300) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||