Unlocking Code Coverage: The Ultimate Guide for .NET Developers

Unlocking Code Coverage: The Ultimate Guide for .NET Developers

HomeNimbleProsUnlocking Code Coverage: The Ultimate Guide for .NET Developers
Unlocking Code Coverage: The Ultimate Guide for .NET Developers
ChannelPublish DateThumbnail & View CountDownload Video
Channel AvatarPublish Date not found Thumbnail
0 Views
Contents:

00:00 Introduction
01:36 View sample code
02:48 Introduction of the bedspread
04:15 Running the dotnet test command to cover
06:48 Using the Coverage Gutters extension to visualize results
11:47 Introduction to the Report Generator
17:03 How much code is tested with Fine Code Coverage?

Description:

In this video, we'll show you how to set up Code Coverage Analysis on your local machine when working with a .NET project. If you use Visual Studio for your .NET development, you might already know that Code Coverage Analysis is built into Visual Studio Enterprise Edition. However, this feature might not be available to everyone. So if you don't have Visual Studio Enterprise, don't worry! We'll show you how to set up Code Coverage Analysis using open source packages and extensions.

We'll cover three different methods for getting code coverage information: from the command line, from Visual Studio Code using packages and extensions, and from Visual Studio. First, we'll use the command line and the Coverlet package to collect coverage information. Once we have the data, we'll use the Coverage Gutters extension for Visual Studio Code to visualize coverage directly in our source code. However, this extension only provides a high-level summary of coverage, so we'll also show you how to generate a more detailed HTML report using the Report Generator package.

Finally, for anyone using Visual Studio without Enterprise Edition, we'll show you how to get code coverage information using the Fine Code Coverage extension, which is easy to set up and use. By the end of this video, you'll know how to get valuable code coverage information to help you make informed decisions for your software development.

Please take the opportunity to connect with your friends and family and share this video with them if you find it useful.