How is coverage on new code calculated?

We are using Azure DevOps with C# and Sonarcloud. We have pushed new code that has tests but SonarCloud is reporting that we have 0% coverage on new code. How is that metric calculated?


Welcome to the community!

You’ll need to add your coverage reports to your analysis. The docs will get you started.