Mutation Testing

noun

say it: “myoo-TAY-shun TES-ting” /mjuˈteɪʃən ˈtɛstɪŋ/

Making small changes to code on purpose, such as turning > into >=, and checking that the tests notice, to measure how strong the tests are.

What is Mutation Testing?

Mutation testing makes small changes to your code on purpose and checks your tests catch them, measuring how strong the tests are.

In a sentence

  • “The team ran mutation testing and added tests for the changes that survived.”
  • “Mutation testing showed that no test noticed when the free-shipping limit changed from 50 to 51.”

Level: Master · More Unit Testing terms at this level

Updated