- Home
- Test Coverage Tools
- Coverlet
Coverlet
What it is
Coverlet is a free cross-platform code coverage framework for .NET projects. It reports line, branch, and method coverage by instrumenting assemblies before tests, recording sequence-point hits, restoring the original assemblies, and writing coverage results. Its integrations include Microsoft Testing Platform, the .NET global tool, VSTest, and MSBuild. The Microsoft Testing Platform driver can produce JSON, LCOV, OpenCover, and Cobertura reports. Depending on the driver, available options include merging reports, validating coverage thresholds, and deterministic build support. The collector and MSBuild packages rely on VSTest and are incompatible with Microsoft Testing Platform projects; coverlet.MTP is provided for MTP projects. Coverlet supports modern SDK-style projects, and its MTP package requires .NET 8.0 SDK or newer. The project also lists a Cake Build add-in and extensions for viewing coverage in Visual Studio on Windows and Visual Studio for Mac. The repository states that Coverlet is licensed under MIT and directs bug reports and feature requests to its issues section.
For and against
For
- Reports line, branch, and method coverage.
- Integrates with VSTest and MSBuild.
- MTP driver supports four report formats.
- MIT licensed.
Against
- MTP package requires .NET 8.0 SDK or newer.
- Collector and MSBuild packages are incompatible with MTP projects.
- Some features vary by driver.
The verdict
Coverlet supports several .NET test workflows and provides coverage reports with driver-dependent options. Teams using Microsoft Testing Platform projects need the dedicated coverlet.MTP package.
Who it suits
It suits .NET developers who need line, branch, or method coverage in test workflows across Linux, macOS, or Windows.
Plans and prices
Coverlet
MIT licensed · supports modern .NET SDK-style projects
Read 3 Oct 2026 · github.com
On the record
- Coverage workflow
- It instruments assemblies before tests run, records sequence point hits, restores the original assemblies and writes coverage results.github.com · read 3 Oct 2026
- Drivers
- Coverlet provides Microsoft Testing Platform, .NET global tool, VSTest and MSBuild integrations.github.com · read 3 Oct 2026
- Feature options
- Driver features include report merging, coverage threshold validation and deterministic build support, with availability varying by driver.github.com · read 3 Oct 2026
- Integrations
- The project lists a Cake.Coverlet add-in for Cake Build and extensions for viewing coverage in Visual Studio on Windows and Visual Studio for Mac.github.com · read 3 Oct 2026
- License
- The repository states that Coverlet is licensed under the MIT License.github.com · read 3 Oct 2026
- Maintainers
- The repository lists Toni Solarin-Sodara as author and owner, alongside co-maintainers.github.com · read 3 Oct 2026
- Purpose
- Coverlet is a cross-platform code coverage framework for .NET with line, branch and method coverage.github.com · read 3 Oct 2026
- Report formats
- The MTP driver supports JSON, LCOV, OpenCover and Cobertura output formats.github.com · read 3 Oct 2026
- Requirements
- Coverlet supports modern SDK-style projects, and its MTP package requires .NET 8.0 SDK or newer.github.com · read 3 Oct 2026
- Support
- The project directs users to report bugs and feature requests through the repository’s issues section.github.com · read 3 Oct 2026
- Test platform
- The collector and MSBuild packages use VSTest and are incompatible with Microsoft Testing Platform; the project provides coverlet.MTP for MTP projects.github.com · read 3 Oct 2026