GT.
GT.

Reputation: 571

Showing Code Coverage Report with Azure DevOps

I'm using Microsoft Unit Tests to validate my solutions via Azure DevOps Pipelines. I am able to see tests being executed and the % of code coverage

enter image description here

However, I can't see the code coverage results (or they won't render)...

enter image description here

Here is my publish code coverage task - am I missing something to have it render here?

enter image description here

Upvotes: 1

Views: 2681

Answers (1)

Vito Liu
Vito Liu

Reputation: 8278

This is a known issue on Azure devops. Now, we could only download the report, and open it with Visual Studio.

Azure devops only support the download link for .coverage files currently. The white page you see is a UI glitch. This scenario is only supposed to render a download link to the coverage file.

Besides, this issue has been submitted in this earlier suggestion ticket linked here:

support vstest .coverage "code coverage" build results tab

This feature request is On Roadmap, I believe it will be released soon, you can follow this thread to know its latest feedback.

In addition, we found a similar case and I have tested via the answer, set the code coverage tool to Cobertura, then I get the code coverage report in the Azure DevOps pipeline. enter image description here

Upvotes: 2

Related Questions