Must-share information:
which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)?
SonarQube Enterprise Edition Version 7.7 (build 23042)
SonarQube Scanner 4.0.0.1744
what are you trying to achieve
I am trying to pass a coverage report of format .coverage
, which is generated by MSBuild, to SonarQube (accoring to these docs). Since I am working with a C/C++ project, the property that I am using is sonar.cfamily.vscoveragexml.reportsPath
. If I’m understanding the docs correctly, this is the correct report format (no need to use CodeCoverage.exe
to convert to .coveragexml
).
However, I am getting this error when executing the sonar-scanner
:
13:40:50.459 INFO: Parsing C:\Users\Sakeeb_Hossain\source\repos\ConsoleApplication1\Debug\test.coverage
13:40:50.529 INFO: ------------------------------------------------------------------------
13:40:50.530 INFO: EXECUTION FAILURE
13:40:50.532 INFO: ------------------------------------------------------------------------
13:40:50.535 INFO: Total time: 21.488s
13:40:50.615 INFO: Final Memory: 29M/104M
13:40:50.615 INFO: ------------------------------------------------------------------------
13:40:50.618 ERROR: Error during SonarQube Scanner execution
java.lang.RuntimeException: com.ctc.wstx.exc.WstxIOException: Input length = 1
Here is the full log:
log.txt (36.6 KB)
Would appreciate any advice!