OhMyCalc

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

  1. Enter total number of mutants generated.
  2. Enter number of mutants killed by tests.
  3. Enter number of survived mutants (optional, for reference).
  4. Click Calculate to get mutation score and quality assessment.

Casi d'Uso

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.