How to collect the code coverage of your tests in .NET

preview_player
Показать описание

Hello everybody I'm Nick and in this video I am going to show you how you can easily collect the code coverage of your .NET application both in a quick and easy way but also in a more details view. Code coverage sometimes is a requirement for your projects and in this video I will show you how you can collect it without relying on Visual Studio or Rider.

Don't forget to comment, like and subscribe :)

Social Media:

#codecoverage #dotnet #csharp
Рекомендации по теме
Комментарии
Автор

Fine Code Coverage is a great extension for visual studio for showing the coverlet in the actual ide.

yumyumrocks
Автор

That's so cool, this way you can just host the coverage online somewhere and let your CI update it, and the entire testing team can easily see what tests need to be implemented.

barmetler
Автор

one of the most important theme in real work IMHO. Thx)

antonkomyshan
Автор

Thanks! This really helped with integrating a nice code coverage report to my build.

felgedits
Автор

Hi Nick, thanks for the great tutorial!
if we want to exclude multiple files on the collecting XPlat code coverage so that it does not show in the report generator, how do we do this?

ghostslinger
Автор

Hi Nick. Are you going to do a video on Microsoft's native Code Coverage in the near future?

GioacchinoPiazzolla
Автор

This is a great way to visualize the coverage. I am trying to find a way to have it autogenerate some of this for me so I don't have to manually type the commands each time. It looks like a .runsettings configuration could be the way, but I haven't figured out how to do it. Could we do this automatically with a configuration setup?

thothrjak
Автор

Hi, thanks a lot, it really helpful.

sri
Автор

Excelent video, thank you! But could you please prompt how can I collect the code coverage of all my tests at the same time if I have more than one In my project?

itania
Автор

is this useful to get the code coverage after Run Automated Tests? if isn't, do you know any other tool to do so.?

byrondelgado
Автор

Thanks for helping us through this great tutorial. Could you make a video on how to import a coverage.xml file in SonarQube ? Please pick my question

subhrajitmazumder
Автор

Instead of line coverage and branch coverage... Can I generate block coverage report.. Please reply

sagarfulari
Автор

If you have multiple dlls, that would generate multiple reports - how would you merge them all?

tejaspatel
Автор

Can you please make a video on ABP framework?

matrixlukan
Автор

Thanks for the video, it helped me a lot. question out of context. what webcam do you use?

Yoko-x
Автор

How is the Total % is different from Average % when coverage is generated via command line?

bvsjagan
Автор

That is very good,

Can you tell me how can I collect the code coverage of a project with Specflow that do the BDD to do the integration tests?

ronaldoperes
Автор

Does this work for .net framework Nick?

philc
Автор

Hey nick, I have a question here, I can't see anywhere the Unit tests count, I need to show this in Sonar Dashboards, but whatever the report is being generated, I can't see the unit tests count

rahulchaurasia
Автор

anyone know how to exclude the views folder?

kavkavy