mutation testing

Software testing technique that makes small deliberate changes to code and checks whether existing tests detect them, measuring how well the tests catch faults.

1 articleLast mentioned

Mutation testing is a software testing technique that creates mutants, versions of a program with small changes to operators, conditions, or constants, and runs the existing tests to see whether each mutant causes a failure. Mutants that make a test fail are considered killed, and the share of killed mutants, called the mutation score, is used to judge the quality of a test suite.

Unlike code coverage, which shows only whether code was executed, mutation testing measures whether tests actually detect incorrect behavior in that code. The idea was proposed in the 1970s, and tools such as PIT for Java and Stryker for JavaScript implement it.

This entry is based on AIPOST articles and widely known facts. If something is wrong, please send us a correction request.

Articles covering this entry

  • AI Agent Code: Why Green Tests Need Independent ChecksAI in Practice ·

    Mutation testing deliberately alters software to see whether a test suite detects the resulting violation.

    Read article

Found a mistake or missing an entry?

Wiki entries are based on AIPOST articles and widely known facts. If an entry is wrong, send us a correction request and we will check and fix it. Names from new articles are added to the wiki after the article is published.