code-coverage-widgets icon indicating copy to clipboard operation
code-coverage-widgets copied to clipboard

Getting Code Coverage of all the builds

Open rahulsahay19 opened this issue 7 years ago • 4 comments

Hi,

I actually have one question rather than bug. Say I have x no of builds setup and individual code coverage I am getting. But wanted to check whether I can have one summarized code coverage from all the builds at one place. Means average of all individual code coverages.

Thanks, Rahul

rahulsahay19 avatar Oct 12 '18 04:10 rahulsahay19

I suppose this is theoretically possible. I use the REST API to access the code coverage details for each build. In your scenario, I would need to traverse the REST API for each build when the widget loads. I'd be a little concerned about the performance if you had a large number of build definitions. Can you help me to understand the value that the overall average would provide you?

sdavis3 avatar Jan 09 '19 17:01 sdavis3

Its actually part of release process, where in management needs to see a complete report where in all individual builds are covered. Currently, I need to exclusively gather all the code coverage and then on top of that, need to apply mean. Hence, thought of asking whether there is any provision for this? Thanks!

rahulsahay19 avatar Jan 11 '19 05:01 rahulsahay19

Ah...ok. Now I understand. So you would expect each build to be plotted on the same chart with a mean line as well?

sdavis3 avatar Jan 11 '19 13:01 sdavis3

Each build will behave as it is like how its giving numbers now. Only thing is it will also give number of overall build average number, let's say at the bottom of the report! Thanks!

rahulsahay19 avatar Jan 14 '19 06:01 rahulsahay19