We use the SonarQube VSTS extension to perform code analyses on our C# projects and publish the results to our own instance of SonarQube.
Since I updated our instance from v6.3 to v6.4, we have lost the code coverage information from the analysis reports in SonarQube. I enabled the verbose mode on the scanner to get more info, and got the following message which seems to explain why the code coverage is missing:
2017-06-27T08:14:56.5456207Z 08:14:56.435 DEBUG: 'Generic Coverage Report' skipped because one of the required properties is missing
The log does not indicate which property is missing. I looked at the sources of the GenericCoverageSensor class, and found out that the property is "sonar.coverageReportPaths".
Do you have an idea about what is going wrong here?
Some info about our configuration:
- We build and test our projects using VS 2017 or VS 2015.
- CodeCoverage.exe is installed and run correctly during the build, producing the .coverage and .coveragexml files.
- The problem does not seem to be linked to the VSTS tasks "SonarQube Scanner for MSBuild". Whether we use version 2 or 3, the reports are still missing the code coverage info.
Thanks in advance. Best regards,