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

  Рет қаралды 69,241

Nick Chapsas

Nick Chapsas

Күн бұрын

Пікірлер: 46
@yumyumrocks1
@yumyumrocks1 3 жыл бұрын
Fine Code Coverage is a great extension for visual studio for showing the coverlet in the actual ide.
@andersborum9267
@andersborum9267 2 жыл бұрын
Agree; have been using it for a long time and it's a great addition to VS.
@barmetler
@barmetler 3 жыл бұрын
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.
@felgedits
@felgedits 9 ай бұрын
Thanks! This really helped with integrating a nice code coverage report to my build.
@antonkomyshan1727
@antonkomyshan1727 3 жыл бұрын
one of the most important theme in real work IMHO. Thx)
@GioacchinoPiazzolla
@GioacchinoPiazzolla 2 жыл бұрын
Hi Nick. Are you going to do a video on Microsoft's native Code Coverage in the near future?
@th3oth3rjak3
@th3oth3rjak3 Жыл бұрын
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?
@byrondelgado8165
@byrondelgado8165 2 жыл бұрын
is this useful to get the code coverage after Run Automated Tests? if isn't, do you know any other tool to do so.?
@AntonioMSpb
@AntonioMSpb 10 ай бұрын
Thank you, it was useful 👍
@itania2266
@itania2266 2 жыл бұрын
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?
@ghostslinger3148
@ghostslinger3148 2 жыл бұрын
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?
@diale13
@diale13 3 жыл бұрын
Loved the video!
@rahulchaurasia5560
@rahulchaurasia5560 11 ай бұрын
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
@sri3884
@sri3884 8 ай бұрын
Hi , thanks a lot , it really helpful.
@sagarfulari2765
@sagarfulari2765 3 жыл бұрын
Instead of line coverage and branch coverage... Can I generate block coverage report.. Please reply
@bvsjagan
@bvsjagan Жыл бұрын
How is the Total % is different from Average % when coverage is generated via command line?
@tejaspatel1679
@tejaspatel1679 Жыл бұрын
If you have multiple dlls, that would generate multiple reports - how would you merge them all?
@Yoko-0x0
@Yoko-0x0 2 жыл бұрын
Thanks for the video, it helped me a lot. question out of context. what webcam do you use?
@nickchapsas
@nickchapsas 2 жыл бұрын
I use a Sony ZV-1 with a Camlink 4k
@Yoko-0x0
@Yoko-0x0 2 жыл бұрын
@@nickchapsas thanks
@ronaldoperes1202
@ronaldoperes1202 2 жыл бұрын
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?
@thespicycoder5583
@thespicycoder5583 2 жыл бұрын
If you are using webapplicationfactory in your integration test project, same approach Nick shown should work. Irrespective of you use specflow or not, it should still work.
@ilkerayti
@ilkerayti 3 жыл бұрын
Where did you choose for your vacation? It's obvious that you're sunbathing on your face :) Nice video. Keep coding.
@nickchapsas
@nickchapsas 3 жыл бұрын
Hahaha, is it that obvious?? I was back home in Greece for a couple of weeks :D
@ilkerayti
@ilkerayti 3 жыл бұрын
@@nickchapsas Ahaha I am from Turkey and live in Izmir that is very close to Greece. Since I am also very white, it is immediately evident on my face at the slightest holiday :))
@philc8544
@philc8544 3 жыл бұрын
Does this work for .net framework Nick?
@mridulpaul1378
@mridulpaul1378 3 ай бұрын
Data collection : Could not find data collector 'XPlat Code Coverage' - getting error
@matrixlukan
@matrixlukan 3 жыл бұрын
Can you please make a video on ABP framework?
@ИванИванов-я5э9к
@ИванИванов-я5э9к Жыл бұрын
What if I have several projects with tests?
@kayasso
@kayasso 2 жыл бұрын
anyone know how to exclude the views folder?
@vaddiparthivenkatamuralikr8334
@vaddiparthivenkatamuralikr8334 2 жыл бұрын
excellent
@subhrajitmazumder7122
@subhrajitmazumder7122 2 жыл бұрын
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
@andrenunes4032
@andrenunes4032 Жыл бұрын
nice!
@matteobarbieri2989
@matteobarbieri2989 3 жыл бұрын
Why don't you make some video on Unit Testing. There's a lot of people that simply ignore them
@nickchapsas
@nickchapsas 3 жыл бұрын
I already have one on TDD
@arthursoares610
@arthursoares610 3 жыл бұрын
Hi Nick. I would like to use your video about MediatR and CQRS as part of software engineering onboarding at my company. But we are allocated in Brazil and not every engineer speak English very well. Could you please enable subtitles editing on your videos? I'll add the translations by my self. Thanks a lot!!!
@victorgarcia3526
@victorgarcia3526 3 жыл бұрын
So this all was just to flex on us about his ridr license
3 жыл бұрын
I think Visual Studio is better than Rider at this point. Visual studio allows us to navigate the code, see which statements (not lines) are covered. It's build-in and we don't have to install any library or tool. However, it's available only on the Enterprise version.
@Zikakoo
@Zikakoo 3 жыл бұрын
VS Enterprise is $250 a month and commercial license for Rider is $349 a YEAR. So not really comparable.
3 жыл бұрын
@@Zikakoo I didn't say everyone should use Visual Studio instead of Rider because of this idea or do an advertisement for Visual Studio. This is just a comparison for a single feature and everyone should agree that Visual Studio is better than Rider in some points and Rider is better in some other points. I'm using and happy with both.
3 жыл бұрын
@@Zikakoo One other thing is when you pay 349 per year, what you have it the license for Rider. That's all. When you pay 250$ per month for VS Enterprise, you have a service and you have benefited from Windows (xp, vista, 7, 10) licenses, Office (plus version, not 365) license, 150$ Azure monthly credits, Pluralsight and a lot more benifit. I can't list them all in a short comment. So, comparing 250$ per month and 349 per year as you did is NOT fair. Anyway, I didn't intend to recommend anyone to use Visual Studio instead of Rider.
3 жыл бұрын
Hopefully JetBrains folks going to implement something similar soon.
@Otto-the-Autopilot
@Otto-the-Autopilot 3 жыл бұрын
@ They should start by attempting to speed up ReSharper first, or at least have it not hang up VS completely while it's initializing. Even in VS 2022 (which is already faster on itself, compared to VS 2019) ReSharper slows down starting up VS and loading solutions tremendously. Luckily for them having it available is still preferred by us over the speed gained in VS by removing it.
What is Span in C# and why you should be using it
15:15
Nick Chapsas
Рет қаралды 261 М.
Writing tests in .NET using xUnit -  xUnit Tutorial
25:50
Nick Chapsas
Рет қаралды 130 М.
Deadpool family by Tsuriki Show
00:12
Tsuriki Show
Рет қаралды 7 МЛН
小路飞和小丑也太帅了#家庭#搞笑 #funny #小丑 #cosplay
00:13
家庭搞笑日记
Рет қаралды 17 МЛН
The best way to create a string in C# that you shouldn't use
16:41
Nick Chapsas
Рет қаралды 70 М.
8 await async mistakes that you SHOULD avoid in .NET
21:13
Nick Chapsas
Рет қаралды 316 М.
Intro to Unit Testing in C# using XUnit
1:42:09
IAmTimCorey
Рет қаралды 420 М.
You are doing .NET logging wrong. Let's fix it
25:29
Nick Chapsas
Рет қаралды 175 М.
Unlocking Code Coverage: The Ultimate Guide for .NET Developers
21:16
The Value of Source Code
17:46
Philomatics
Рет қаралды 212 М.
Welcome to .NET 9 - .NET Conf 2024 Keynote
1:05:19
dotnet
Рет қаралды 56 М.
Deadpool family by Tsuriki Show
00:12
Tsuriki Show
Рет қаралды 7 МЛН