Is it possible to view the code coverage history of a specific file?

SonarQube: 7.8.0.26217
Sonar Scanner: 4.0.0.1744

Is it possible to view the code coverage history of a specific source file? If so, where can you view this information?

Thanks

Hi,

You’re not going to be able to see the history, but you can retrieve it using web services. You’ll find a link to the on-board docs in your page footer. Take a look at measures/search_history.

 
HTH,
Ann

Thanks @ganncamp

I have a similar problem in my project, so posting here only ----

using the measures/search_history API, I can just get the historical code coverage of my project.

My use-case is below -
We have weekly Prod releases, and accordingly execute the regression suites every week (W1, W2, etc.). One of the factors to decide Go-live is the confidence from code coverage.

So week W1 had, say for example - 60%
and week W2 had, say for example - 50%

Though we executed our entire regression suites in both weeks, still there is huge difference in the metrics. Now I want to find out where is the diff of 10% coming from, i.e., which files have reported lesser coverage in W2 as compared to W1.

Is there a way to get this info ?

Hi,

Welcome to the community!

You’ve resurrected a 4y-old post. Please don’t do that. Please create a new thread with all your details.

 
Ann

1 Like