dotnet-add-testing

Scaffold xUnit test projects with Coverlet coverage in .NET.

1|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/rudironsoni/dotnet-agent-harness --skill dotnet-add-testing-rudironsoni
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-add-testing
Source: https://github.com/rudironsoni/dotnet-agent-harness/tree/main/.rulesync/skills/dotnet-add-testing
Command: npx skills add https://github.com/rudironsoni/dotnet-agent-harness --skill dotnet-add-testing-rudironsoni

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the setup of essential testing infrastructure within an existing .NET project, ensuring a robust and conventional testing foundation.

Core Features & Use Cases

  • Scaffolds xUnit Test Projects: Creates new xUnit test projects mirroring your source code structure.
  • Configures Code Coverage: Integrates Coverlet for collecting code coverage metrics.
  • Sets Up Build Properties: Manages common test project settings via Directory.Build.props and Directory.Packages.props for consistency.
  • Use Case: When starting a new .NET project or adding testing capabilities to an existing one, this Skill quickly sets up the necessary xUnit projects, references, and configuration files, allowing developers to focus on writing tests immediately.

Quick Start

Use the dotnet-add-testing skill to add xUnit test infrastructure to the 'MyApp.Core' project.

Frequently Asked Questions about dotnet-add-testing

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

FAQPage Schema
How do I add xUnit testing infrastructure to an existing .NET project?

To add xUnit testing infrastructure to a .NET project, you need to scaffold test projects mirroring your source code, configure the test SDK, and set up project references. This automates the setup of conventional directory structures and build properties.

What is the best way to configure Coverlet code coverage in a .NET solution?

Configuring Coverlet code coverage in a .NET solution involves integrating the package into your test projects and managing consistent test settings via Directory.Build.props and Directory.Packages.props for centralized package management.

How do I scaffold a unit test project that mirrors my .NET source code structure?

Scaffolding a unit test project that mirrors your .NET source code structure requires creating an xUnit project, ensuring proper project referencing to the source code, and applying conventional directory configurations for build properties.

Does this testing setup use Central Package Management for xUnit and Coverlet dependencies?

Yes, the testing setup uses Central Package Management (CPM) via Directory.Packages.props to manage xUnit, Coverlet, and test SDK packages, ensuring version consistency across the entire .NET solution.

Can I set up integration tests alongside unit tests using .NET scaffolding?

You can set up integration tests alongside unit tests by scaffolding xUnit test projects configured with the appropriate test SDK, allowing you to manage both test types within a conventional .NET directory structure.