Test mutation score breakdown calculator

Invalid mutants are excluded from the valid-mutant score and included in the generated-mutant denominator.

Your inputs

Use the units shown.

Valid mutation score (%)
75
Generated mutants (count)
90
Invalid share (%)
11.11111111

Your calculation
How is this calculated?

Divide killed mutants by killed plus surviving mutants.

Add all mutually exclusive outcome counts.

Divide invalid mutants by all generated mutants.

Invalid mutants are excluded from the valid-mutant score and included in the generated-mutant denominator. Equivalent mutants must be classified externally.

Stryker Mutator — Mutant States and Metrics ↗

Try an example

Worked example

Valid mutation score (%): 75

Inputs
  • Killed mutants (count): 60
  • Surviving mutants (count): 20
  • Invalid mutants (count): 10

Compare inputs

Valid mutation score (%): 60

Inputs
  • Killed mutants (count): 60
  • Surviving mutants (count): 40
  • Invalid mutants (count): 0
Share this page
Share this calculator

Leave unchecked to share the page without your entered values.