Aggregate new code coverage by version or over time

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube 7.6, Scanner 2.7, Plugin, and any relevant extension)
    I am attempting to call an API for previous versions for new code coverage. This way I can track the data sprint over sprint to show our progression to our goal of > 70% code coverage. I currently see the data for the last version, however, I am wanting to be able to aggregate the data to help my organization.

So far to date, I have attempted pulling the metrics via date and scoured the documentation with no luck. Is there something that I am missing? Any help is appreciated.

Hi,

First, what happened when you tried to pull the metrics by date? And which documentation were you looking at? The web service API docs linked from your SonarQube footer?

 
Ann

When I pull the metrics by date it only gives me the overall coverage numbers not the new lines of code metrics. Yes, I was using the web API link in the footer to attempt to pull the code coverage on new lines of code. Do you have any other recommendations? The other way would be to curl the site on a new version and then parse the source to extract the information and then store it in a S3 bucket. Once there I can aggregate this information. It just seems like I should be able to get this information via a web API. Thanks for any assistance.

Hi,

I don’t think we store historic values for “New*” metrics. Those are in-the-moment values.

 
Ann