- What version are you upgrading from?
Sonarqube 9.9 - System information (Operating system, Java version, Database provider/version)
Microsoft Windows Server 2022、Java 11.0.17 、 Microsoft SQL Server 2017 - What’s the issue you’re facing?
My Sonarqube report cannot read the xml report produced by opencover
Coverage shows 0
Below is my command
"%SonarScanner_PATH%\SonarScanner.MSBuild.exe" begin /k:"SONARQUBE_TEST" /v:COVERAGE_TEST /d:sonar.host.url="IP:Port" /d:sonar.login="%Sonarqube_bin%" /d:sonar.branch.name=COVERAGE /d:sonar.cs.opencover.reportsPaths=%opencover_report_PATH%\opencover.xml
%MSBuild_PATH%\MSBuild.exe /t:Rebuild
"%Opencover_PATH%\OpenCover.Console.exe" -target:"%nunit3_PATH%\nunit3-console.exe" -targetargs:"%UNIT_TEST_DLL_PATH%\Server.UnitTest.dll" -register:user -output:"%opencover_report_PATH%\opencover.xml"
"%SonarScanner_PATH%\SonarScanner.MSBuild.exe" end /d:sonar.login="%Sonarqube_bin%"
I use reportgenerator to generate a test report.
But Sonarqube doesn’t show coverage.
Any ideas ?
Regards,
Ian