Mutation Score Calculator
Calculate mutation testing score from total and killed mutants. Assess test suite effectiveness beyond simple code coverage.
How to Use the Mutation Score Calculator
- Enter total number of mutants generated.
- Enter number of mutants killed by tests.
- Enter number of survived mutants (optional, for reference).
- Click Calculate to get mutation score and quality assessment.
Casi d'Uso
- •Measuring test suite effectiveness beyond coverage.
- •Identifying gaps in test assertions.
- •Comparing test quality across code modules.
- •Justifying investment in additional test writing.
Formula
Mutation score = killed mutants / total mutants × 100%. Higher score = better test suite quality.
Domande Frequenti
What is mutation testing?
Mutation testing introduces small code changes (mutants) and checks if tests detect them. Surviving mutants reveal weak tests.
What is a good mutation score?
Above 80% is excellent. 60–80% is good. Below 40% suggests many tests pass without validating logic.
Which tools perform mutation testing?
PIT (Java), Stryker (JavaScript/TypeScript), mutmut (Python), and MutPy are popular mutation testing frameworks.