We have a devel edition and are uploading coverage data using the generic format for our c/c++ project. Unfortunately, the code coverage shown by Sonar is always 0%.
we use the -Dsonar.coverageReportPaths=… to tell Sonar about the XML file. The paths inside the XML file are in the form “src/…” which match the way Sonar is showing them in the Code browser tab.
Try running analysis with the -X switch or -Dsonar.verbose=true and then show us your analysis logs, or at least the part that pertains to the reading - or not - of the report file.
Ann
P.S. It would also be helpful to have some version numbers…
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.
Thank you, I was searching for my first post with no success. I thought I did not really post it
I finally managed to get the results on Sonar. Not sure what was really the problem (may be sent the results of the build that did not contain cov data …)