Search code examples
code-coveragesonarqube

Fail SonarQube quality gate when coverage decreases


I'm using SonarQube 4.3 and try to get a quality gate (formerly known as alerts) working which fails when the integration tests coverage has decreased since last analysis.

Does anyone know how to get to this?


Solution

  • Ok, that's it. Set "Coverage, Delta since last analysis, less than, 0". The "0" goes in the error field, if this should cause an error. Thanks Disco 3