I am building and pushing static analysis report to sonarqube server for my ASP.NET application from developer command prompt for VS 2017, analysis result is pushing to the server but code coverage is not showing on sonarqube server.
Below is the sequence of commands i am trying-
SonarScanner.MSBuild.exe begin /k:“Project-Key” /d:sonar.host.url=SonarQube server URL /d:sonar.login=“Token” /d:sonar.cs.opencover.reportsPaths=D:\coverage.xml
We are using SonarQube Community Edition Version 7.9.2 (build 30863) also I have update the SonarScanner for MsBuild to version 5.15.1.88158-net46. But still it is not uploading code coverage to SonarQube server. All the test cases are passed in VS developer command prompt during build process using OpenCover.4.7.1221 and coverage.xml is also genrated on analysis machine.
I am not sure what us the exact issue for not uploading the test coverage report to SonarQube.
Your version is past EOL. You should upgrade to either the latest version or the current LTA (long-term active version) at your earliest convenience. Your upgrade path is:
If you have questions about upgrading, feel free to open a new thread for that here.
If your issue persists after upgrade, please come back to us. At that point, you’ll also find all the documentation on .NET Test Coverage is relevant for your version of SonarQube.