We have a C# code base built in Azure DevOps, linked with SonarCloud. We’ve gotten the tests integrated correctly and things show up in SonarCloud correctly, except the code coverage. The % in AZD shows up as something like 85% with Cobertura, but when looking at the % in SonarCloud, it only shows 0.7%.
The SonarCloudAnalyze@1 log (attached) looks like it sees the .coveragexml file SonarCloudAnalyze.txt (248.7 KB)
Here is my pipeline .yml file. azd.yml.txt (2.2 KB)
Is there a setting or something I need to set in SonarCloud?
Thank you very much for the response. Your suggestions were spot-on. As it turns out, these were integration tests, not unit tests. As such, the logic was only consuming the interfaces, not the implementation, so it’d make sense that a lot of the files didn’t appear to be touched.