aaronontheweb avatar

Testcontainers Integration Tests

This one helps you write integration tests using TestContainers for .NET with xUnit, spinning up real databases, Redis, RabbitMQ, and other infrastructure in Docker containers instead of relying on mocks. It covers SQL Server, PostgreSQL, testing actual database migrations, handling container lifecycle with IAsyncLifetime, and using Respawn to reset data between tests without recreating containers. The core argument is solid: mocking a database doesn't catch SQL syntax errors, constraint violations, or real query behavior. You get actual integration confidence at the cost of slightly slower tests, though the patterns here show you how to reuse containers across test classes to keep things fast. Works in CI/CD environments that support Docker.

skills.sh installs
579
GitHub stars
1.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add aaronontheweb/dotnet-skills --skill testcontainers-integration-tests --agent claude-code

Installs into .claude/skills of the current project.

Files

Integration Testing with TestContainers

When to Use This Skill

Use this skill when:

  • Writing integration tests that need real infrastructure (databases, caches, message queues)
  • Testing data access layers against actual databases
  • Verifying message queue integrations
  • Testing Redis caching behavior
  • Avoiding mocks for infrastructure components
  • Ensuring tests work against production-like environments
  • Testing database migrations and schema changes

Reference Files

Core Principles

Sponsors

Details

Repository
github.com/aaronontheweb/dotnet-skills
Categories
Testing & QA, DevOps & CI/CD, Cloud & Infrastructure, .NET & C#
First seen
Jun 3, 2026

More from aaronontheweb/dotnet-skills

All 34
1eyadkelleh avatarsecurity-usernameseyadkelleh/awesome-skills-securityTop username lists for enumeration: common usernames, default credentials, names. Curated essentials for authorized testing.577skills.sh installs
2notedit avatarfeature-devnotedit/happy-skillsGuided feature development with codebase understanding and architecture focus. Use for implementing features systematically: explore → clarify → design → implem544skills.sh installs
3longbridge avatarlongbridge-financial-checkuplongbridge/skillsSystematic 100-point financial health scorecard for listed companies via Longbridge — five dimensions: profitability (ROE / net margin / gross margin), growth (515skills.sh installs
4horuz-ai avatarwebsite-clonerhoruz-ai/claude-pluginsAgentic workflow for cloning websites with pixel-perfect fidelity using specialized sub-agents. Use when the user wants to clone/copy/replicate a website, creat509skills.sh installs
5hkuds avatarcli-anything-wiremockhkuds/cli-anythingPython CLI harness for WireMock HTTP mock server administration503skills.sh installs
6bobmatnyc avataraxumbobmatnyc/claude-mpm-skillsAxum (Rust) web framework patterns for production APIs: routers/extractors, state, middleware, error handling, tracing, graceful shutdown, and testing500skills.sh installs