CheckOps
Coverlet
Coverlet is an MIT-licensed cross-platform code coverage framework for .NET, with line, branch and method coverage, available as a VSTest collector, MSBuild integration or global tool.
Latest public signals
Not refreshed yet. Refresh reads the public site and, when the entry has a GitHub repository, the latest release.
Introduction
Coverlet is a cross-platform code coverage framework for .NET, supporting line, branch and method coverage. It is included by default in the dotnet new xunit template through the coverlet.collector package.
Coverlet offers three integrations. The VSTest collector (coverlet.collector) works with dotnet test --collect:"XPlat Code Coverage". The MSBuild integration (coverlet.msbuild) is enabled with /p:CollectCoverage=true and supports thresholds that fail the build. The .NET global tool (coverlet.console) can measure coverage for standalone integration tests. By default the collector writes JSON and Cobertura reports, and other formats include LCOV and OpenCover, which tools such as ReportGenerator, Codecov and Coveralls consume. The README notes that Coverlet supports only SDK-style projects. Version 10.1.0 was released on 27 September 2026.
The source code is at coverlet-coverage/coverlet on GitHub under the MIT licence, with about 3,200 stars; the most recent commit was on 10 November 2026.
Features
- Cross-platform: Windows, Linux and macOS.
- Three integrations: VSTest collector, MSBuild and global tool.
- Multiple formats: JSON, Cobertura, LCOV, OpenCover and more.
- Thresholds: Fail builds below coverage targets with MSBuild.
Pros
- Free to use: Open source under the MIT licence, so the core tool costs nothing to use.
- Actively maintained: The repository had commits as recent as 10 November 2026.
- Community: About 3,200 GitHub stars.
Cons
- SDK-style projects only: Older project formats are not supported.
- Separate reporting tool: HTML reports usually need ReportGenerator.
Usage and Links (Example)
# Collector (included in many test templates)
dotnet test --collect:"XPlat Code Coverage"
# MSBuild integration with a threshold
dotnet add package coverlet.msbuild
dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:Threshold=80
# HTML report with ReportGenerator
dotnet tool install -g dotnet-reportgenerator-globaltool
reportgenerator -reports:**/coverage.cobertura.xml -targetdir:coverage-report
Resources:
Pricing
Coverlet is free and open source under the MIT licence.
Recommended for?
- .NET teams on any OS wanting free coverage in CI.
- Projects uploading coverage to Codecov or Coveralls.
Conclusion
Coverlet is the standard free coverage tool for modern .NET, flexible enough for local runs and CI gates.
Alternatives
Other tools on CheckOps that cover similar ground. Open a page, or compare one with Coverlet side by side.
CCodecovCodecov by Sentry is a code coverage reporting service that shows coverage for any language, CI and code host in pull request comments and dashboards, with flags, carryforward, test analytics for flaky tests and AI test generation.Compare with Coverlet
CCoverallsCoveralls is a hosted code coverage history and statistics service that integrates with your CI to report repository, file and line-by-line coverage with pull request notices; free for open source with paid plans for private repos.Compare with Coverlet
XxUnit.netxUnit.net is a free, Apache-2.0, community-focused unit testing tool for C#, F# and Visual Basic, part of the .NET Foundation; v3 supports .NET 8+ and .NET Framework 4.7.2+.Compare with Coverlet
NNUnitNUnit is an MIT-licensed unit-testing framework for all .NET languages on Windows, macOS and Linux, broad and non-opinionated, now at version 5 after NUnit 3 and 4.Compare with Coverlet
MMSTestMSTest is Microsoft's MIT-licensed test framework for .NET, developed in the microsoft/testfx repository alongside Microsoft.Testing.Platform, a lightweight alternative to VSTest, with the MSTest.Sdk project SDK.Compare with Coverlet
SStryker.NETStryker.NET is the Apache-2.0 mutation testing tool for C# and .NET from the Stryker Mutator project, run as the dotnet-stryker global tool with HTML reports, a dashboard and incremental runs.Compare with Coverlet