Report Coverage - [TeamCity x .NET]

Hello Everyone!!

Im trying to integrate sonarQube in TeamCity using reports generated by dotCover in .Net Application.

However, I created a pipeline in TeamCity with these follow steps.:

  • Sonar Begin
  • Build
  • Run Tests
  • Sonar End

The report is generated but the coverage don’t appear in sonarQube.


Im using this parameter in sonar-begin.: sonar.cs.dotcover.reportsPaths to appoint to report…

All data appears in sonarQube, except coverage.

Has anyone had this problem? Would you help me?

Thanks a lot.

Hello @Andre_Rodrigues
and welcome to the Community!
I can confirm that you are far from the first user struggling with coverage import for his .Net project.
That’s why a guide has been written about the topic: [Coverage] Troubleshooting guide for .NET code coverage import.
Did you follow these troubleshooting instructions already?

Best regards