sdavis3 / code-coverage-widgets

A dashboard widget for Azure DevOps or Team Foundation Server (TFS) to display information about unit test code coverage.
MIT License
16 stars 10 forks source link

Getting Code Coverage of all the builds #26

Open rahulsahay19 opened 6 years ago

rahulsahay19 commented 6 years ago

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

sdavis3 commented 5 years ago

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?

rahulsahay19 commented 5 years ago

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!

sdavis3 commented 5 years ago

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

rahulsahay19 commented 5 years ago

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!