IT lexicon › Programming › Mutation testing

Mutation testing

Programming På svenska → Updated: 2026-05-23

Introduce deliberate bugs ("mutations") into the code and see whether the tests catch them.

A better quality measure than code coverage: "code runs" ≠ "behaviour is tested". Tools: Stryker (JS/TS), PIT (Java), mutmut (Python). Slow to run, but exposes weak tests that otherwise pass.

← Back to the lexicon