'Overall Coverage' widget is not populating for projects using Cobertura

9 views
Skip to first unread message

Kiran Kumar Pokala

unread,
Sep 20, 2017, 7:23:50 AM9/20/17
to SonarQube
Hello Everyone!

I see there are multiple coverage widgets/measures provided now in SonarQube. Majorly there is 'Coverage' & 'Overall Coverage'.
I understood, 'Coverage' reports the Unit Testing coverage, whereas the 'Overall Coverage' reports the integrated coverage of both Unit Testing & Integration testing.
Both the measures/widgets are populated as expected when the project is using jacoco reports, the problem comes with projects using Cobertura reports, where the 'Overall Coverage' widget is not getting populated.

Please recommend if any changes or additional properties that needed to be included to get the 'Overall Coverage' widget populated for Cobertura case as well.

Thank you for your continuous support!

Kiran Kumar.

G. Ann Campbell

unread,
Sep 20, 2017, 7:41:04 AM9/20/17
to SonarQube
Hi Kiran,

Properties exist to feed both Unit and Integration test reports for JaCoCo, but there's only one property to feed a Cobertura report. I'm not sure how you're trying to feed these two different things, but this just isn't going to work for Cobertura.

On a side note, it's always helpful to provide your versions. The SonarJava unit test documentation reminds me that Cobertura isn't supported after SonarQube 6.2, or SonarJava 4.3. So if you're on newer versions than either of those... that could be another reason it's not working for you.


:-)
Ann
Reply all
Reply to author
Forward
0 new messages