Awesome Reviewers

Verification · Testing · Mutation testing

Mutation score gate

Fail when the score on changed code drops below a threshold.

How to build it

  1. Set a break threshold on the mutation score for the changed files.
  2. Start the threshold at the current score and raise it in steps.
  3. Fail the job when the score on changed code drops below the threshold.

Signals in a repository

  • A thresholds block with break and high or low values in the stryker configuration.
  • A mutationThreshold setting in the pitest build configuration.

In practice

3 repositories run a tool for this check in the scanned set.

  • stryker · 3 repos

Examples