VstsExtensions icon indicating copy to clipboard operation
VstsExtensions copied to clipboard

Is it possible to check diff coverage with this extension?

Open Giuspepe opened this issue 4 years ago • 4 comments

First of all, thanks for creating this great extension :) I just have a quick question regarding diff coverage. Is it possible to check diff coverage (e.g. that newly added code in a pull request must be fully covered, like here: https://docs.microsoft.com/en-us/azure/devops/pipelines/test/codecoverage-for-pullrequests?view=azure-devops)?

Thanks in advance for your help!

Giuspepe avatar Mar 25 '21 13:03 Giuspepe

Hi @Giuspepe,

unfortunately, the task cannot check diff coverage at the moment. Build Quality Checks is not evaluating coverage itself; instead it simply reads coverage values as they have been published from Azure DevOps. When I last talked to the testing tools team, there wasn't any diff coverage API available so our task can't read that from the service. It's still on our roadmap to switch from simply reading coverage data to evaluating coverage directly in the task, which would solve a couple other things like timing issue that come from the asynchronous processing of coverage data in Azure DevOps. Yet, I'm currently the only one developing the extensions and I'll probably won't have time to work on that in the near future. I can probably spend some time during my next vacation (end of June) to work on the parsing of coverage data, which would then allow us to calculate diff coverage as well (or at least it should allow us to do that).

Cheers, René

ReneSchumacher avatar Mar 25 '21 14:03 ReneSchumacher

Hi @ReneSchumacher,

alright, thanks for your quick reply and your effort!

Giuspepe avatar Mar 25 '21 15:03 Giuspepe