SonarQube option to JaCoCo on code coverage reports publishment

Hello, 

My company is seeking a code quality tool for a new project and as result of an research we found SonarQube a good option.

But after some tests we faced a problem that is hard to solve.

Our project already have a big number of unit tests using Mockito + Powermock, but aparentely JaCoCo way of instrument code coverage is not compatible with those API's combination. JaCoCo doesn't consider line coverage when a test is written using powermock.

Searching for an option to JaCoCo we found Clover, a great API that fulfilled our needs. (After clover became open-source we migrated to openclover.org API)

But we also have a need to centralize all code quality measures in one tool such as SonarQube.

Im currently looking for a way to publish these test result inside SonarQube.

But as indicated in this link (https://docs.sonarqube.org/display/SONARQUBE45/Clover+Plugin) the plugin was descontinued in an old version.

 

Is there a way to publish Clover/OpenClover reports inside SonarQube?

Any story on Sonar roadmap to seek for an option to JaCoCo?

 

Thanks in advance.

1 answer

0 vote

Report format hasn't changed for OpenClover, thus I believe Sonar plugin which works fine with Atlassian Clover should work as well with OpenClover. 

But its possible to install Clover Sonar Plugin in latest SonarQube version?

TBH I understood you're asking about report compliance between Atlassian Clover and OpenClover. 

I don't know how up to date Clover Sonar plugin is. This plugin was never oficially supported by Atlassian. 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published 7 hours ago in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

32 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you