What is mutation testing?
AdvancedConceptTesting and Quality Gates
Answer
A mutation testing tool (PIT for Java, Stryker for JS/.NET, mutmut for Python) makes small changes to the code (flip > to >=, remove a call) and reruns the tests; if tests still pass, the mutant "survived", exposing weak tests. The mutation score is a better quality measure than coverage but is expensive, so run it on changed modules or nightly.
More on Testing and Quality Gates
What is the testing pyramid?BeginnerWhat is the difference between unit, integration, and end-to-end tests?BeginnerWhat are smoke tests and sanity tests in a deployment pipeline?IntermediateWhat is code coverage and is a high percentage a good target?IntermediateWhat is a quality gate in SonarQube?IntermediateHow do you integrate SonarQube into a CI pipeline and make it block on gate failure?Intermediate