Verification · Testing · Mutation testing
Mutation score gate
Fail when the score on changed code drops below a threshold.
How to build it
- Set a break threshold on the mutation score for the changed files.
- Start the threshold at the current score and raise it in steps.
- 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
-
diegosouzapw/OmniRoute ·
strykerstryker run --config-file stryker.disablebail.json --mutate $BATCH_MUTATE