Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Run Coverlet Report

Run Coverlet Report

Chris Dexter

|
10,420 installs
| (6) | Free
An easy to use visual studio 2019 extension to run coverlet code coverage and then use report generator and show results in visual studio with syntax highlighting. Note: Relies on Coverlet and Report Generator being available.

Run Coverlet Report

A Visual Studio 2019 Extension to make showing code coverage easy.

What is it

The aim of this extension is to make something similar to the functionality provided by the Enterprise edition of Visual Studio, without the cost. Run Coverlet Report builds upon the excellent Coverlet and Report Generator tools that allow you to collect code coverage results from unit tests. This extension will run the two tools and then display the report file within visual studio as well as use the Coverlet output to provide syntax highlighting.

For more information about coverlet see https://github.com/coverlet-coverage/coverlet

For more information about Report Generator see https://danielpalme.github.io/ReportGenerator/

Installation

  1. Install the Visual Studio extension.

  2. Install Report Generator as a global tool Follow this guide https://github.com/danielpalme/ReportGenerator/releases

  3. In your unit test projects add the Coverlet.MSBuild nuget package (due to a bug Coverlet.Collector support will be added in future).

Usage

Once installed click Tools | Run Code Coverage in Visual Studio. 'dotnet test' will then execute your unit tests and after a few moments (provided all of your tests pass) a report generator window will open showing the ReportGenerator output. C# syntax in your .cs files will also be highlighted to indicate your code coverage.

  • Red background = uncovered code.
  • Green background = covered code
  • Orange background = a part covered line.

Run Coverlet Report Preview

Version History

New syntax highlighting options and new layout on the options page. Borders and Highlights now support more styles (solid, linear and none), and colour options.

Use a combination of border and highlight styles to create the look that suits your development environment, for example Linear borders

  • Border Style = Linear
  • Border Linear End Colour = #00FFFFFF (transparent)
  • Highlight Style = None

For full version history https://github.com/the-dext/RunCoverletReport/blob/master/README.md

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft