Versions used
- SonarQube Enterprise Edition Version 8.9.1 (build 44547)
- SonarScanner 4.6.2.2472
Sonar Scanner end command log
INFO: Sensor C# Tests Coverage Report Import [csharp]
INFO: Parsing the OpenCover report C:\source\<solutin-folder>\src\.\.\coverage.opencover.xml
WARN: Unable to get next XML event while parsing file '.\.\coverage.opencover.xml'
WARN: Could not import coverage report '.\.\coverage.opencover.xml' because 'Error while parsing the XML file: C:\source\<solution-folder>\src\.\.\coverage.opencover.xml'. Troubleshooting guide: https://community.sonarsource.com/t/37151
INFO: Sensor C# Tests Coverage Report Import [csharp] (done) | time=4ms
Steps to reproduce
- generate coverage report for entire solution
- merge reports into one file (i.e. coverage.opencover.xml)
- expect failure on parsing when publishing the report on scanner end command
Potential workaround
- keep coverage files separated for multiple projects in the same solution