- using, sonarqube-9.4.0.54424 developer edition and sonar-scanner-4.7.0.2747-windows
- My project is having C, C++ languages. I am able to run sonar-scanner and results are shown on dashboard using build-wrapper-win-x86.
But the coverage is showing zero.
I am using googletest for unit test cover and creating code coverage report in cobertura (xml) formal using OpenCppCoverage.
sonar.coverageReportPaths=./ctestCoverage.xml
sonar.cobertura.reportPath=./ctestCoverage.xml
sonar.flex.cobertura.reportPaths=./ctestCoverage.xml
- I tried above things but for 1st line throwing parsing error and remaining lines are not reflecting in logs.
ERROR: Error during SonarScanner execution
ERROR: Error during parsing of the generic coverage report 'C:\REPO\ctestCoverage.xml'. Look at SonarQube documentation to know the expected XML format.
ERROR: Caused by: Unknown report version: 0. This parser only handles version 1.
Is there any way to support cobertura xml for c++ project or any option to generate sonar supported report using OpenCppCoverage?
Thank you