I’ve run into a weird and very tiresome issue regarding our integration between SonarCloud and Azure DevOps. The integration between the two platforms work fine, we receive comments etc from our PRs, however i for whatever reason cannot get the Coverage gate to fail if no test coverage is provided.
This seems to work fine when a sonarcloud project is analysed on the main branch as it clearly display our test report in the project. However, for some reason i cannot get any results when we create PR for a project. The code coverage is always 0%, and the gate never fails, but the test report is generated and published.
Why is it that it seems to work fine for our main branch, but the PRs simply both isn’t failing the coverage gate (even though my quality gates states they should) and seems to ignore the report generated?
I am at a lost
- ALM used: Azure DevOps
- CI system used: Azure DevOps