How to retrieve the test coverage history for a given Java Class?

439 views Asked by At

I am using the SonarQube 4.5.7 API. I run SonarQube analysis on full Java codebase overnight (daily).

I want to retrieve test coverage data for a given Java class using the SonarQube API.

When I use following API (sample), it gives me current Test coverage. It doesn't gives me historic test coverage. For ex - what was coverage a week ago or a month ago.

http://sonar-server/api/resources?resource=com.test:module:com.test.service.impl.CheckServiceImpl&metrics=coverage,branch_coverage

Sample output

File: SampleProgram.java

Test Current (today): 99%

Test Current (1 week ago): 92%

Test Current (1 month ago): 96%

Is there any such single API?

0

There are 0 answers