Code coverage with sonar cloud

Working on a Dotnet project where the code coverage results are generated in the azure devops pipeline but not on sonar cloud dashboard.

You have to make sure they’re in the place where the sonar tasks in the build pipeline will find them.

If you turn up diagnostics for the pipeline, the testing task will tell you where it’s putting the coverage files, and the sonar task will tell you where it’s looking for the coverage files. Usually it’s a little configuration setting to change the path where the test task puts the coverage files.


To complement @StingyJack’s answer, here is the SonarCloud documentation on .NET Test Coverage

1 Like

Thanks for your response for DOTNET we have identified the issue from our end and that was resolved.