Coverage failed in Azure DevOps but passed in SonarCloud

  • ALM used: Azure DevOps
  • CI system used: Azure DevOps
  • Languages of the repository: C#

Running into something weird, this has happened twice so far. We are using Azure DevOps with SonarCloud and while the quality gate passes the build fails for code coverage.
image
image

Where would I go to diagnose where the disconnect it. Looking in the logs I can see the API server saying everything is happy.

Hi @jtsievert,

This feature is a newest addition in the Azure Devops status policies.

It has nothing to do with SonarCloud, and needs to be configured separately.

For that matter, it is just displayed, but will not failed your PR status except if you have activated it in the status policy of the target branch.

You can read more about this here

HTH,
Mickaël

1 Like

Looks like I got confused going back after the fact, thanks for the clarification. Gone back to the docs and got the tokens all in place and it looks just like the documentation now. Thanks again!