Sonar Cloud Quality Gate not able to fetch the Coverage from bitbucket

Hello SonarCloud Community,

I’m encountering an issue where SonarCloud’s Quality Gate is not picking up the coverage reports from my test cases. I’m using Bitbucket Pipelines to run my tests, and everything seems to execute correctly within the pipeline. The tests run, and coverage is generated, but when the results are pushed to SonarCloud, the coverage is reported as 0.0%.

I’ve already checked the following:

  1. Coverage Report Paths: The paths in my sonar-project.properties file are correctly pointing to the coverage reports.
  2. Report Format: I’m using a format compatible with SonarCloud.
  3. Pipeline Logs: The coverage report is generated, and there are no obvious errors in the pipeline logs.

Despite this, SonarCloud still isn’t able to retrieve the coverage data. Has anyone faced a similar issue or can suggest where I might be going wrong? Any help or guidance would be greatly appreciated.

Thanks in advance!

Hey there.

What do the logs say about the import of code coverage?