- Azure DevOps pipeline
- GH repo, private
- 1 .net solution with 4 csharp projects
- SonarCloud, private project
The PR verification build reports the following in sonarcloud
Thats 26 new lines known for purposes of duplication analysis, but 0 new lines for code coverage analysis. There are no analysis exclusions configured for this project in sonar, the classes do not have any exclusion attributes or file name patterns. The testing task in the pipeline is creating TRX and Coverage files and the sonar code analysis task is finding them.
I dont see any setting different between this and another project/repo that seems to be reporting new lines for coverage. Our default for New Code is < 30 days, but I tried using previous version and having the build autoincrement the project version in the sonar prep task and it did not work either.
What else can be preventing the coverage percentage from being reported?
EDIT: At one point this was reporting quality gate failure and blocking the PR due to 0% coverage but that quality gate condition for new code coverage was removed because we cant get it to calculate, so I dont think its a problem with the quality gate