Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to present code coverage report on Azure DevOps #10962

Closed
SergiyKostenko opened this issue Mar 22, 2020 · 4 comments
Closed

How to present code coverage report on Azure DevOps #10962

SergiyKostenko opened this issue Mar 22, 2020 · 4 comments
Assignees

Comments

@SergiyKostenko
Copy link

SergiyKostenko commented Mar 22, 2020

Hello,

Is there way to present code coverage report using DotNetCoreCLI@2 test command?
Documentation (https://docs.microsoft.com/en-us/azure/devops/pipelines/ecosystems/dotnet-core?view=azure-devops&tabs=yaml#collect-code-coverage) says
The .coverage file can be downloaded from the build summary for viewing in Visual Studio. Howewer, it is not handy to download it. I would prefer to see it on tab? Is it possible with default dotnet cli?
image

@marcpopMSFT marcpopMSFT added the untriaged Request triage from a team member label Apr 6, 2020
@wli3
Copy link

wli3 commented Apr 8, 2020

Sorry there is not test coverage on CLI today

@wli3 wli3 removed the untriaged Request triage from a team member label Apr 8, 2020
@wli3 wli3 added this to the Backlog milestone Apr 8, 2020
@eluchsinger
Copy link

So what does the --collect:"Code Coverage" do on dotnet test? I see a file .coverage created in my Unit Tests folder. How does the vstest approach compare to dotnet test?

There are so so many guides explaining how to collect code coverage and all of them just post commands without explaining what they do exactly. I have not found one single best practice approach in Microsoft's multiple Docs about Code Coverage.

Can we get an official advice on how to do Code Coverage? I know it's possible, what I don't know is how I should do it.

@wli3
Copy link

wli3 commented May 6, 2020

This issue was moved to microsoft/codecoverage#29

@wli3 wli3 removed this from the Backlog milestone May 6, 2020
@wli3 wli3 closed this as completed May 6, 2020
@gioce90
Copy link

gioce90 commented May 23, 2023

Hi @SergiyKostenko , I wrote somethings here microsoft/codecoverage#29 (comment) , it can be a starting point for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants