Reputation: 51
We are using the default 'SonarQube way' quality gate, which has a 'Mutations Coverage' setting, however this does not seem to cause the gate to fail.
For example, I have a small test project that does not have enough mutation coverage, and reports this as a code smell:
3 more mutants need to be covered by unit tests to reach the minimum threshold of 65% mutant coverage
This comes from a FindBugs quality profile. Is it possible also to fail a quality gate?
Upvotes: 3
Views: 264
Reputation: 11132
You have to modify the quality gate (SonarQube way) by adding a rule, that errors (or warns) if the Mutation coverage is "less than" 65
Upvotes: 1