Mutant is a mutation testing tool for Ruby. Mutation testing is a technique to verify semantic coverage of your code.
Mutant adds to your toolbox: Detection of uncovered semantics in your code. Coverage becomes a meaninful metric!
On each detection of uncovered semantics you have the opportunity to:
- Delete dead code, as you do not want the extra semantics not specified by the tests
- Add (or improve a test) to cover the unwanted semantics.
- Learn something new about the semantics of Ruby and your direct and indirect dependencies.
- Start with reading the nomenclature documentation.
- Than select and setup your integration, also make sure you can reproduce the examples in the integration specific documentation.
- Identify your preferred mutation testing strategy. Its recommended to start at the commit level, to test only the code you had been touching. See the incremental mutation testing documentation.