List of code coverage reports

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)

Sonarqube: 8.7.1

  • what are you trying to achieve

we have many projects belong to a business unit.
they want a monthly code-coverage report that listed two columns… like this:

project abc: 80%
project xyz: 70%

now, we have to gather the info manually with free version…
is there a way to automate this? with free version?
or need to purchase the enterprise version for this type of report?

please advise.

Hi @indratan,

The best way to do this (regardless of edition) is to use the Web API (documentation in the footer of any SonarQube page) in a small script. Specifically api/measures/component with the coverage metric. So your script would iterate over the required project keys and each SonarQube API query would look like this:


Hope this helps!



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