dotnet-coverlet

Automate code-coverage setup for .NET test projects with coverlet drivers.

8|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/Postpartum-genushyacinthus29/dotnet-skills --skill dotnet-coverlet-postpartum-genushyacinthus29
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-coverlet
Source: https://github.com/Postpartum-genushyacinthus29/dotnet-skills/tree/main/skills/dotnet-coverlet
Command: npx skills add https://github.com/Postpartum-genushyacinthus29/dotnet-skills --skill dotnet-coverlet-postpartum-genushyacinthus29

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Automates code-coverage setup for .NET projects.

Core Features & Use Cases

  • Choose and install one of the coverage drivers (collector, msbuild, or console) for VSTest or NUnit-style tests.
  • Configure test projects to produce consistent, CI-friendly coverage outputs and reports.
  • Use in CI pipelines to ensure reliable coverage collection and report generation.

Quick Start

Run the workflow to bootstrap a coverlet-based coverage plan for your repository.

Frequently Asked Questions about dotnet-coverlet

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up code coverage for a .NET test project?

To set up .NET code coverage, this workflow automates driver selection and installation, then configures your test projects to produce consistent line and branch coverage outputs for both local and CI environments.

When do I need coverlet.msbuild vs coverlet.collector for .NET testing?

Coverlet.msbuild integrates directly into the build process, while coverlet.collector works as a data collector for VSTest. This workflow evaluates your CI and local testing needs to decide and install the correct driver.

Can I use coverlet to collect line and branch coverage in a CI pipeline?

Yes, you can use coverlet to collect line and branch coverage in CI pipelines. The workflow provides concrete CI commands and validation steps to ensure reliable coverage collection and report generation.

What is the best way to automate code-coverage setup for .NET repositories?

The best way to automate .NET code-coverage setup is to run this workflow, which locates the nearest AGENTS.md, installs the selected coverlet driver, and provides validated local and CI commands for your repository.

Does coverlet.console work with NUnit-style tests in .NET?

Yes, coverlet.console works with NUnit-style tests and VSTest frameworks. The workflow helps you choose and install the appropriate coverage driver, including console, collector, or msbuild, based on your specific test framework.

Why does my .NET code coverage configuration fail in CI environments?

Coverage configurations often fail in CI due to inconsistent driver setup or missing validation steps. This workflow streamlines the process by applying a coverlet-based coverage plan with CI-friendly outputs and concrete validation commands.