Not seeing the Code Coverage Section in the UI


Sonarqube Version: V8.9.6 Community Edition
Scanner: SonarQube Extension for Azure DevOps

I am running the sonar scan through Azure DevOps Pipeline. I’m able to see the coverage results in ADO, but in the Sonarqube UI, the section where the code coverage information is listed is missing.

Any help/suggestions are greatly appreciable.

Thanks in Advance!!!

Hey there.

What language(s) are you analyzing?

Hi @Colin,

Its C#, JSON & XML.


Can you share your Azure Pipelines YAML so we can understand how your build is configured?

Hi @Colin,

Apologies for the delayed response. I’ve attached my pipelines yaml.

Thanks. (1.2 KB)

Thanks. A few notes:

/d:sonar.cs.opencover.reportsPaths=./TestResults/coverage.opencover.xml /d:sonar.cs.vstest.reportsPaths=$(Agent.TempDirectory)/*.trx /d:sonar.coverage.exclusions="**Tests.cs

What happens if you remove these entirely and let autodetection work its magic?

Thanks, @Colin. I have the extension installed, but it looks like I’m not following the correct steps.
Let me check on that. Is this .NET test coverage the correct way to run the scan?

Updating the Sonarqube to the 9.9LTS resolved the issue with the UI. Thanks, @Colin, as per your comment removing the Coverage report’s Path arguments allowed Sonar to display the coverage results.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.