Skip to content
SPECIFICTION
Get listed

Coverlet vs Microsoft Code Coverage

Coverlet

github.com

Microsoft Code Coverage

github.com

Side by side

FigureCoverletMicrosoft Code Coverage
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
WindowsYesYes
macOSYesYes
LinuxYesYes
Plans published11
Spec score · Test Coverage Tools7.7 (#12)7.5 (#18)
PurposeCoverlet is a cross-platform code coverage framework for .NET with line, branch and method coverage.Measures what proportion of a project's code is exercised by coded tests such as unit tests.
Report formatsThe MTP driver supports JSON, LCOV, OpenCover and Cobertura output formats.The MTP coverage extension supports coverage, XML, and Cobertura output formats.
SupportThe project directs users to report bugs and feature requests through the repository’s issues section.The repository invites users to report issues related to the Microsoft.CodeCoverage and dotnet-coverage NuGet packages and Visual Studio code coverage functionality.

Plans

Coverlet

  • CoverletFree

Coverlet pricing →

Microsoft Code Coverage

  • Microsoft Code CoverageFree

Microsoft Code Coverage pricing →

In their own words

Coverlet

Coverlet is a free, MIT-licensed code coverage framework for modern .NET SDK-style projects. It measures line, branch, and method coverage across Linux, macOS, and Windows. Before tests execute, Coverlet instruments assemblies, records sequence-point hits, restores the original assemblies, and writes coverage results. Drivers are available for Microsoft Testing Platform, the .NET global tool, VSTest, and MSBuild. The Microsoft Testing Platform driver can emit JSON, LCOV, OpenCover, and Cobertura reports. Depending on the driver, teams can merge reports, validate coverage thresholds, and support deterministic builds. Collector and MSBuild packages use VSTest; Microsoft Testing Platform projects instead use coverlet.MTP, which requires the .NET 8.0 SDK or newer. Cake.Coverlet and Visual Studio viewing extensions are also listed. Coverage gates are supported, and bugs or feature requests go through the repository issues section.

Visit github.com

Microsoft Code Coverage

Microsoft Code Coverage measures how much of a project’s code is exercised by coded tests, such as unit tests. Its documented workflows cover.NET test projects with `dotnet test` and other.NET applications with the `dotnet-coverage` tool. It analyzes managed CLR and unmanaged native code using static or dynamic instrumentation; native coverage is disabled by default in the MTP extension. With Microsoft.Testing.Platform.MSBuild, extensions are auto-registered with MSTest, NUnit, and xUnit runners. The MTP extension can produce coverage, XML, and Cobertura reports, with settings for output, inclusion and exclusion rules, and instrumentation. It runs on Windows, macOS, and multiple Linux distributions, though instrumentation support varies by OS, version, and architecture. Other operating systems are supported on a best-effort basis, and some combinations allow static instrumentation only. Dynamic instrumentation on macOS and Linux requires libxml2, and missing dependencies may leave a report empty. MTP also excludes test assemblies by default unless configured otherwise. The plan is free.

Visit github.com