Use the open-source free `coverlet` toolchain for .NET code coverage.
Coverage Analysis
Interprets .NET Cobertura line, branch, and condition evidence and, when explicitly requested, computes project-wide CRAP/refactoring-risk hotspots. MUST USE for "why is branch coverage lower than line coverage?", condition-coverage="50% (1/2)", a supplied coverage excerpt, partially covered conditions, coverage plateaus, members blocking a target, project-wide CRAP, refactoring safety, or coverage-backed risk priorities. A supplied report is analyzed directly without rerunning tests, installing tools, generating a report, or calculating CRAP unless the request asks for risk/CRAP/refactoring safety. DO NOT USE FOR: CRAP or refactoring-safety analysis of only one named method, class, or file (crap-score); test trait distributions (test-tagging); static source-to-test pairing (find-untested-sources); behavioral/pseudo-mutation gaps (test-gap-analysis); test-code audits (test-anti-patterns); raw collection/percentage-only requests or just running tests (run-tests); non-.NET coverage; or writing tests.
Related skills
Write, run, or repair .NET tests that use MSTest.
Write, run, or repair .NET tests that use NUnit.