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?