SonarQube Enterprise Edition Version 9.3 (build 51899)
GitHub Action task: sonarsource/sonarqube-scan-action@master with SonarScanner 4.6.2.2472
dotNET 6.0 project
In CI-pipeline we run coverage-tests with the command “dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover”.
After that we see in the logs information about our coverage-tests:
Also we see that SonarQube imports this information:
INFO: Parsing the OpenCover report /github/workspace/./src/External/OdataToEntity.Test.CosmosDb/coverage.opencover.xml
INFO: Adding this code coverage report to the cache for later reuse: /github/workspace/./src/External/OdataToEntity.Test.CosmosDb/coverage.opencover.xml
But on the portal I see another information:
Coverage = 0 lines
Why does this happen?
Thanks in advance.
I don’t have the Overal Code section in my current branch.
Earlier in the master branch, we did not use coverage tests. But now we need to do it. And I am testing it in my branch.