Everything seems to be working and processed by sonarscanner. However it (and every variation we tried) won’t end up in SonarCloud report for the pull request. We’ve also closely checked every step in the troubleshooting guide on your community forums ([Coverage] Troubleshooting guide for .NET code coverage import).
We’ve really tried everything we could find in the documentation and on the community forums but nothing seems to work. Could it be that there is an issue on the side of SonarCloud? Otherwise could you please help us try to find the issue.
I have got a lot of debug information but can’t not share this in the public community because of company policy. We can share it but not publicly.
Github actions workflow file
Github run logs (including verbose sonarscanner output)
It’s indeed in the context of a PR. The github action running dotCover and publishing to sonarcloud doesn’t run in the main branch yet as it’s not working for the PR yet.
Here’s the screenshot of the sonarcloud dashboard showing the 0% coverage.
The pull request indeed just contains the configuration for reporting the test coverage.
It was my understanding that it will display the full coverage percentage. So the reported coverage on a pull request only applies only to the newly added lines? And then the “estimated coverage after merge” is the full code coverage for the entire codebase?
Our intended use case was to also guard for a lowering overall coverage, which is something that could happen when tests are modified.