I’m using SonarQubde devel edition 7.3. My project is C/C++ and I’d like to upload generic coverage data to the server. Currently I’m failing with the server showing no cov.
My project layout is like this:
root/ src/ build/
The sonar settings are:
I run the scanner with the following args:
-Dproject.settings=config/sonar/sonar-project.properties -Dsonar.projectBaseDir=. -Dsonar.coverageReportPaths=myreport.xml
(where . is the root/)
I have code coverage data in the following form:
<?xml version='1.0' encoding='UTF-8'?> <coverage version="1"> <file path="src/audio/modules/AGC/AGC_float.c"> <lineToCover lineNumber="100" covered="false"/> ....
So I think the paths in the cov XML file are right (they start by src/, which is exactly how Sonar shows them in the web UI (“Code tab”)).
Unfortunately I get 0 coverage data in the UI. Can you help me with this ?