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

[Feature Request] #31

Closed SychevIgor closed 5 years ago

SychevIgor commented 5 years ago

Is it possible to show code coverage only for some branch? In our project we are not running code coverage for Feature branches and as a result, quite frequently widget show - no data, but it means only one- latest build was done for feature branch.

It will be nice to have a dropdown with list of branches https://github.com/sdavis3/CodeCoverageDashboardWidgets/blob/master/configuration.html and show code coverage only for this build (in our case - develop)

P.S. are you open to Pull Requests?

sdavis3 commented 5 years ago

I am absolutely open to all pull requests! :)

SychevIgor commented 5 years ago

@sdavis3 which version of SDK you are using? I didn't understand it from source code or repository history https://github.com/microsoft/azure-devops-extension-api (looks like this one, but version is not clear)

SychevIgor commented 5 years ago

Hmm Based on API method signature - we can't pick coverage summary only for specific branch Instead, we should find N and N-1 buildIDs and set both as parameters image

SychevIgor commented 5 years ago

Hmm.. looks like it was bad idea. Shortly: If there are no completed builds- we can's choose all builds and select unique branch names. Alternatively, we can find thousands of build results and it will be time/traffic expensive as well as filtering will be a nightmare. If we will load list of branches - we will can't setup for a not yet existing branch.

SychevIgor commented 5 years ago

Loos like it's a bit harder than I thought

SychevIgor commented 5 years ago

Created PR and closed it. maybe can be used in a future https://github.com/sdavis3/CodeCoverageDashboardWidgets/pull/32 But as of now- not ready to such deep digging