Coverlet is a cross-platform code coverage framework for .NET, with support for line, branch and method coverage. It works with .NET Framework on Windows and .NET Core on all supported platforms. Coverlet documentation reflect the current repository state of the features, not the released ones. Check the changelog to understand if the documented feature you want to use has been officially released. Coverlet is integrated into the Visual Studio Test Platform as a data collector. Coverlet also integrates with the build system to run code coverage after tests. Enabling code coverage is as simple as setting the CollectCoverage property to true. The coverlet tool is invoked by specifying the path to the assembly that contains the unit tests. You also need to specify the test runner and the arguments to pass to the test runner using the --target and --targetargs options respectively.

Features

  • Coverlet can be used through three different drivers
  • VSTest engine integration
  • MSBuild task integration
  • .NET Global tool (supports standalone integration tests)
  • Coverlet supports only SDK-style projects
  • Coverlet is integrated into the Visual Studio Test Platform as a data collector
  • You need to be running .NET Core SDK v2.2.401 or newer

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Coverlet

Coverlet Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Coverlet!

Additional Project Details

Programming Language

C#

Related Categories

C# Frameworks, C# Code Coverage Tool

Registered

2022-09-13