Currently, in our project we are using TeamCity to run the builds and generate reports to SonarQube. I can see code smells, bugs and even code coverage for many projects. But we are facing an issue with one project for which code coverage is 0%. But we could see code coverage locally when we ran using Visual Studio and we are using dotCover to see the coverage results locally.
Current Project uses .NET
Build Tool: TeamCity
Test Framework: Nuit
Coverage Tool: dotCover.
I have seen the following articles,
In our additional relevant analysis parameter we are using,
sonar.cs.dotcover.reportsPaths for dotCover
Do we need to use * sonar.cs.vscoveragexml.reportsPaths for Visual Studio Code Coverage this command as well.
I know we use this d:sonar.verbose=true to see logs but is there a way to see logs to a specific project??
Please advise and let me know if you need more info.
But we are facing an issue with one project for which code coverage is 0%.
Is this a test project or is there something different for it?
Is the coverage file generated correctly on the build agent?
I know we use this d:sonar.verbose=true to see logs but is there a way to see logs to a specific project?
No, the logs for all the projects are added in the same file.
Would it be possible to run again the steps with verbose logging enabled (/d:sonar.verbose=true) and share with us the logs from the end step? With this, we should have more details about what actually happens when importing the coverage.