Unlocking Code Coverage: The Ultimate Guide for .NET Developers

Sdílet
Vložit
  • čas přidán 4. 06. 2024
  • Contents:
    00:00 Intro
    01:36 Looking at sample code
    02:48 Introducing coverlet
    04:15 Running dotnet test command for coverage
    06:48 Using Coverage Gutters extension for visualizing results
    11:47 Introducing Report Generator
    17:03 How much code is being tested with Fine Code Coverage
    Description:
    In this video, we will show you how to set up code coverage analysis on your local machine when working with a .NET project. If you're using Visual Studio for your .NET development, you may already know that Visual Studio Enterprise edition has code coverage analysis built-in. However, this feature may not be available to everyone. So, if you don't have Visual Studio Enterprise, don't worry! We will show you how to set up code coverage analysis using open-source packages and extensions.
    We will cover three different methods to obtain code coverage information: from the command line, from Visual Studio Code using packages and extensions, and from Visual Studio. First, we will use the command line and the Coverlet package to collect coverage information. Once we have the data, we will use the Coverage Gutters extension for Visual Studio Code to visualize the coverage directly in our source code. However, this extension only provides a high-level summary of the coverage. So, we will also show you how to generate a more detailed HTML report using the Report Generator package.
    Finally, for those of you using Visual Studio without Enterprise edition, we will demonstrate how to obtain 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 about your software development.
  • Věda a technologie

Komentáře • 5