- using, sonarqube-22.214.171.124424 developer edition and sonar-scanner-126.96.36.19947-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?