Sonar intermittent Coverage report

More of a theoretical discussion, but my team has a somewhat particular way of integrating testing, and so we run the tests in a separate environment and generate partial jacoco reports, which we then combine and upload to a local artifactory. With that in mind, we wanted to only include those coverage reports in some sonar runs, or maybe amend pass runs with the coverage information, is something like that possible?

Hi,

Welcome to the community!

The paths in the coverage report need to match the paths analysis sees, so this could be difficult unless you’re very careful with the pathing.

 
HTH,
Ann

So as long as we put the jacoco reports in the correct path, it should be ok right? Also, would it be possible to pass multiple reports, from different test suites, or should we merge them all into one big report?

Thank you for the Welcome, been using the tech for the better part of the past 4 years, just now got familiar enough to start being the one managing the integration

1 Like

Hi,

The paths inside the reports need to match the paths analysis is seeing. If everything is kicked off from project root and all the paths are relative (to project root) then this ought to work.

Per the docs, the parameter accepts a comma-delimited list of reports, so you should be good on this part.

 
HTH,
Ann

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.