check-coverage

Analyze .NET test coverage from OpenCover XML and report classes below 85%.

2|Updated May 2, 2026
One-click install
npx skills add https://github.com/andrecini/dotnet-squad-copilot-agent --skill check-coverage-andrecini
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: check-coverage
Source: https://github.com/andrecini/dotnet-squad-copilot-agent/tree/main/.claude/skills/check-coverage
Command: npx skills add https://github.com/andrecini/dotnet-squad-copilot-agent --skill check-coverage-andrecini

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you find which parts of your codebase have insufficient automated test coverage, so you can improve reliability and meet quality thresholds.

Core Features & Use Cases

  • Runs targeted test suites: executes all tests or restricts execution by layer or by specific test project.
  • Reads coverlet-generated coverage reports: parses OpenCover XML coverage output to compute coverage metrics by class.
  • Highlights risk levels vs a fixed threshold (85%): categorizes classes as conforming (≥85%), attention (60–84%), or critical (<60% or no tests), then suggests next actions.

Quick Start

Run the skill to execute the repository test suite, compute line coverage per class from the coverage report, and list classes below the 85% threshold.

Frequently Asked Questions about check-coverage

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

FAQPage Schema
How do I check unit test coverage for classes below a quality threshold in a .NET repository?

To check unit test coverage, you can run dotnet test with coverlet.msbuild using OpenCover output, analyze the coverage.opencover.xml report, and classify classes against an 85% threshold to identify untested or critically under-tested code. It highlights classes below 60% as critical and 60–84% as needing attention.

How do I find untested classes in a specific .NET project or layer?

You can find untested classes by restricting test execution to a specific layer or test project. After running dotnet test with coverlet.msbuild, the coverage analysis parses the OpenCover XML output to compute line coverage metrics per class and reports which classes lack tests within that targeted scope.

What is the 85% test coverage quality gate and how does it classify code risk?

The 85% test coverage quality gate is a fixed threshold used to classify code risk in .NET repositories. Classes with coverage at or above 85% conform, those between 60–84% require attention, and classes below 60% or with no tests are flagged as critical risks.

Does this coverage analysis tool modify code or automatically generate missing tests?

No, this coverage analysis tool never modifies code or auto-triggers test creation. It strictly computes line coverage per class from the coverlet-generated OpenCover XML report, classifies the results by threshold tiers, and reports the findings in chat to guide manual improvements.

Can I use coverlet.msbuild and OpenCover output to verify my entire .NET test suite coverage?

Yes, you can verify your entire .NET test suite coverage by executing all tests with dotnet test and coverlet.msbuild. The tool reads the generated coverage.opencover.xml file, analyzes line coverage across the full suite, and reports any classes failing the 85% quality threshold.

Why do I need an OpenCover XML report to measure line coverage per class?

You need an OpenCover XML report because it provides the structured line coverage data required to compute metrics per class. The tool parses this specific coverlet-generated output format to accurately locate classes with low or missing test coverage and evaluate them against the 85% threshold.