← ClaudeAtlas

dotnet-add-testinglisted

Adds test infrastructure to a .NET project. Scaffolds xUnit project, coverlet, layout.
rudironsoni/dotnet-harness-plugin · ★ 0 · Testing & QA · score 59
Install: claude install-skill rudironsoni/dotnet-harness-plugin
# dotnet-add-testing Add test infrastructure scaffolding to an existing .NET project. Creates test projects with xUnit, configures code coverage with coverlet, and sets up the conventional directory structure. ## Scope - Test project creation with xUnit and coverlet - Conventional directory structure (tests/ mirroring src/) - Project reference wiring and test SDK configuration ## Out of scope - In-depth testing patterns (xUnit v3, WebApplicationFactory, UI testing) -- see [skill:dotnet-testing-strategy] **Prerequisites:** Run [skill:dotnet-version-detection] first to determine SDK version and TFM. Run [skill:dotnet-project-analysis] to understand existing solution structure. Cross-references: [skill:dotnet-project-structure] for overall solution layout conventions, [skill:dotnet-scaffold-project] which includes test scaffolding in new projects, [skill:dotnet-add-analyzers] for test-specific analyzer suppressions. --- ## Test Project Structure Follow the convention of mirroring `src/` project names under `tests/`: ````text MyApp/ ├── src/ │ ├── MyApp.Core/ │ ├── MyApp.Api/ │ └── MyApp.Infrastructure/ └── tests/ ├── MyApp.Core.UnitTests/ ├── MyApp.Api.UnitTests/ ├── MyApp.Api.IntegrationTests/ └── Directory.Build.props # Test-specific build settings ```xml Naming conventions: - `*.UnitTests` -- isolated tests with no external dependencies - `*.IntegrationTests` -- tests that use real infrastructure (database, HTTP, file system) - `*