Sonar Quality Gate doesn't fail. Metrics seem incorrect

Hi all, I was wondering if anyone could tell us why this happens. We’re working on optimizing our pipeline and ran into the following:

Our quality gate is set at 80% line coverage. Like So:

However, the analysis comes back with this:

But then, if I go a step further into the code, the metrics show like this:

I don’t understand why that quality gate passed. Any help is very much appreciated!!!

Template for a good new topic, formatted with Markdown:

  • ALM: Bitbucket
  • CI: Bitbucket Pipeline
  • Scanner command used when applicable: pipe: sonarsource/sonarcloud-scan:1.4.0
  • Languages of the repository: Python
  • Only if the SonarCloud project is public, the URL: NA
  • See above


Welcome to the community!

Are you passing in any coverage reports to analysis? I believe that the difference between ‘-’ and ‘0’ for coverage is that ‘-’ means no coverage was computed because no reports were passed in. So basically we skip applying the coverage QG condition in these cases.