Skip to content

Software quality

Mutation Testing

Technique that deliberately introduces small errors into the code to check how meaningful the tests are.

A mutation test deliberately alters the code minimally at individual places – for example a comparison operator is swapped or a constant is changed – and checks whether the existing test suite notices this change, the so-called mutation. If no test fails, the mutation has “survived”, and the tests, when in doubt, do not cover that spot sufficiently.

Mutation tests address a gap that test coverage alone leaves open: code can be run through without any test actually checking whether the result is correct. Because every mutation runs the complete test suite again, the technique is computationally expensive and in practice often does not run on every commit.

In practice at Provimedia

What Provimedia uses it for

Provimedia uses mutation tests in selected projects as a local gate to uncover blind spots in its own test suite.

Want to use Mutation Testing for your project?

In a free conversation, let's find out how we can implement this for you.