I have created a Quality Gate mostly focussed on what has been happening ‘lately’ - but one metric is about the overall current coverage in the project. The Quality Gate is set as the default - and all projects use it. The Leak Period is set to
I have several projects that (correctly) fail the quality gate - and fail it only due to low coverage, but I have several projects that are below the coverage minimum, but show as Passed for the quality gate.
Quality gate definition:
I can see the following scenarios:
- A project with 36% coverage, and 100% coverage on new lines - gate passes instead of failing on the overall coverage criteria
- A project with 59% coverage, and 62% coverage on new lines - gate fails - but NOT on the overall coverage criteria
- A project with 59% coverage, and 71% coverage on new lines - gate fails on both new lines coverage and overall coverage criteria.
Looks like a bug to me. Any hints as to what I might be able to do to work around this?
Using SonarQube: 6.7.5 (build 38563)