Coverlet
github.com
What it is
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.
Spec sheet
- Purpose
- Coverlet is a cross-platform code coverage framework for .NET with line, branch and method coverage.Read 3 Oct 2026 · github.com
- 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.Read 3 Oct 2026 · github.com
- Support
- The project directs users to report bugs and feature requests through the repository’s issues section.Read 3 Oct 2026 · github.com
- License
- The repository states that Coverlet is licensed under the MIT License.Read 3 Oct 2026 · github.com
- Coverage workflow
- It instruments assemblies before tests run, records sequence point hits, restores the original assemblies and writes coverage results.Read 3 Oct 2026 · github.com
- Drivers
- Coverlet provides Microsoft Testing Platform, .NET global tool, VSTest and MSBuild integrations.Read 3 Oct 2026 · github.com
- Feature options
- Driver features include report merging, coverage threshold validation and deterministic build support, with availability varying by driver.Read 3 Oct 2026 · github.com
- Maintainers
- The repository lists Toni Solarin-Sodara as author and owner, alongside co-maintainers.Read 3 Oct 2026 · github.com
- Report formats
- The MTP driver supports JSON, LCOV, OpenCover and Cobertura output formats.Read 3 Oct 2026 · github.com
- Requirements
- Coverlet supports modern SDK-style projects, and its MTP package requires .NET 8.0 SDK or newer.Read 3 Oct 2026 · github.com
- Test platform
- The collector and MSBuild packages use VSTest and are incompatible with Microsoft Testing Platform; the project provides coverlet.MTP for MTP projects.Read 3 Oct 2026 · github.com
Plans and prices
Strong points and limits
Strong points
- Free plan with MIT license
- Supports line, branch, and method coverage
- Runs on Linux, macOS, and Windows
- Multiple test-platform integrations
- Coverage threshold validation available
Limits
- MTP package requires .NET 8.0 SDK or newer
- VSTest packages are incompatible with MTP projects
- Feature availability varies by driver
Who it suits
It suits .NET teams that need automated line, branch, or method coverage on desktop or server operating systems. Teams using Microsoft Testing Platform should use the separate coverlet.MTP package.
Verdict
Coverlet provides broad .NET coverage workflows without a license fee. Check the driver and test-platform requirements before selecting an integration.
Where Specifiction places it
- Test Coverage Tools#12 of 277.7