Web API for cobertura / coverage metrics

  • Sonarqube Community Edition Version 7.7 (build 23042)
  • We are trying to get Coverage (ideally on per user basis, if not on a per project) metrics to be displayed in a KPI dashboard we are building
  • We’ve already manages to get users’ open issues using the web API

We haven’t been able to find an API that hopefully returns this metrics. I’ve seen there
was both a tests and a resources endpoint, but neither no longer exists.

Hi,

This data is not available via SonarQube. You could try to coordinate coverage-per-line data (from SQ) with the last committer on each line (from your SCM), but that will really only give you the last person to touch a covered (or not) line, not who wrote the test that covered the line. In general, I think this data would be very difficult to assemble accurately.

 
Ann

Thanks for the feedback Ann, it’s a pity there’s no such data available, not on a project only basis mayube?

Hi,

Sorry, it’s just really not available at any level.

 
Ann