# dotnet-integration-testing

The dotnet-integration-testing Claude Code skill covers .NET integration tests against real infrastructure. Ask for API test setup with an in-process server or a database running in Docker.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 111 installs · ★ 92 repo stars
- Author: wshaddix
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/wshaddix/dotnet-skills/tree/HEAD/skills/dotnet-integration-testing/SKILL.md
- Updated: 2026-02-27
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/dotnet-integration-testing

## What it does

The skill describes testing ASP.NET Core endpoints through an in-process test server and connecting tests to databases and other services in containers. Its examples cover `WebApplicationFactory`, `Testcontainers`, and testing with .NET Aspire.

It also shows service and configuration overrides, test authentication, and database fixture management. `Testcontainers` requires a running Docker daemon, and the test project must already exist with its integration-test packages referenced. The baseline assumes .NET 8.0 or later; `Microsoft.AspNetCore.Mvc.Testing` must match the target framework’s major version.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add wshaddix/dotnet-skills --skill dotnet-integration-testing -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/dotnet-integration-testing/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/dotnet-integration-testing/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add wshaddix/dotnet-skills --skill dotnet-integration-testing -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/dotnet-integration-testing/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add wshaddix/dotnet-skills --skill dotnet-integration-testing -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/dotnet-integration-testing/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install wshaddix/dotnet-skills skills/dotnet-integration-testing
```

2. **Manually: put the files in place**
- File: `.github/skills/dotnet-integration-testing/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add wshaddix/dotnet-skills --skill dotnet-integration-testing -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/wshaddix/dotnet-skills --path skills/dotnet-integration-testing
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/dotnet-integration-testing/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add wshaddix/dotnet-skills --skill dotnet-integration-testing -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/wshaddix/dotnet-skills/tree/HEAD/skills/dotnet-integration-testing/SKILL.md

## When to use it
- test an HTTP endpoint through an in-process server
- connect tests to a database in Docker
- replace application services and configuration
- add test authentication for a protected API

## Example prompts
- Write an integration test for the orders endpoint using `WebApplicationFactory`.
- Set up a PostgreSQL test database with `Testcontainers`.
- Show how to replace application services and add test authentication.

## Similar
- [planning-oracle-to-postgres-migration-integration-testing](https://affpapa.org/en/nevibecode/skills/planning-oracle-to-postgres-migration-integration-testing.md) — skill · 1800 installs
- [aspire-integration-testing](https://affpapa.org/en/nevibecode/skills/aspire-integration-testing.md) — skill · 532 installs
- [integration-testing](https://affpapa.org/en/nevibecode/skills/integration-testing.md) — skill · 564 installs
- [132-java-testing-integration-testing](https://affpapa.org/en/nevibecode/skills/132-java-testing-integration-testing.md) — skill · 401 installs
- [322-frameworks-spring-boot-testing-integration-tests](https://affpapa.org/en/nevibecode/skills/322-frameworks-spring-boot-testing-integration-tests.md) — skill · 388 installs
- [mailpit-integration](https://affpapa.org/en/nevibecode/skills/mailpit-integration.md) — skill · 454 installs

From the same set: [wshaddix/dotnet-skills](https://affpapa.org/en/nevibecode/by/wshaddix/dotnet-skills.md) — 24 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
