Code Coverage tool NOT to use? BEST to use? For SONAR

Code Coverage tool NOT to use? BEST to use? For SONAR

Hello Sonar Community,

I currently use JACOCO code coverage reports with SONAR – for Java J2EE projects.
I saw the SONAR Code Coverage site page: Test Coverage & Execution | SonarQube Docs
There are other report formats available.
Can anyone advise on the following?

Q:
Are there any report formats that I should AVOID using with SONAR?
Any BAD experiences out there?

Q:
I need to determine the BEST code coverage report “format” for SONAR. Possibly to move-away from JACOCO. That SONAR works best with. Causes the least amount of problems.
Can anyone tell me the BEST report type to use?

Q:
I assume staying with JACOCO is the best thing to do, since it is specifically for JAVA code coverage.
I assume this is the most logical choice.
Can anyone provide a counter-argument for that?

Thanks for any advice anyone can give.
Thanks,
John Dove

Hi John,

Welcome back!

JaCoCo is the only natively-supported format for Java. If you use any other tool you’ll have to get the report into either a JaCoCo format or into the Generic Test Coverage format.

Is there a reason you’re asking about migrating away from JaCoCo? Or are you just double-checking?

 
Ann

Hi Ann,

Thanks for the quick reply and confirmation on that.
Was assuming that was the case.
Thanks. I’ll stick with JACOCO.

Is there a reason you’re asking about migrating away from JaCoCo?
Or are you just double-checking?

Just double-checking.
Was assuming JACOCO.
Thanks for the quick reply.

Regards,
John

1 Like

Just wanted to say thanks again, for the quick reply to my questions.

Helps me a lot on my side.

Thanks! : - )