Skip to content
aaronontheweb avatar

Testcontainers Integration Tests

Integration test scaffolding that runs xUnit suites against real databases, caches, and queues in Docker.

CCM score
67 of 100
skills.sh installs
629
GitHub stars
1.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers real-infrastructure testing for .NET using TestContainers 4.x module builders instead of mocks
  • Includes examples for SQL Server, PostgreSQL, Redis, and RabbitMQ, plus migration testing and Respawn database reset
  • Enforces IAsyncLifetime setup and teardown, random container ports, and disposal of containers in DisposeAsync
  • Designed for .NET teams writing data access, caching, and message queue tests that need production-like behavior

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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

Details

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

Questions

What does the testcontainers-integration-tests skill do?

The testcontainers-integration-tests skill writes .NET integration tests with xUnit that run against real databases, message queues and caches in Docker containers instead of mocks. It covers SQL Server, PostgreSQL, Redis and RabbitMQ, plus migration testing and container reuse.

How do I install the testcontainers-integration-tests skill?

Run npx -y skills add aaronontheweb/dotnet-skills --skill testcontainers-integration-tests -y inside a project. The skill then lets the agent write TestContainers 4.x integration tests against real infrastructure in that project.

What does testcontainers-integration-tests need to run?

The skill needs Docker available wherever the tests run, since TestContainers starts real containers. Its examples use the Testcontainers module packages, xUnit, and database drivers such as Microsoft.Data.SqlClient, Npgsql and StackExchange.Redis.

Where does testcontainers-integration-tests sit among other testing skills?

testcontainers-integration-tests is listed in the Testing & QA category on Claude Marketplaces. It is one of several testing skills there, and it focuses on infrastructure-backed .NET tests with real containers.

More from aaronontheweb/dotnet-skills

All 34

Similar to Testcontainers Integration Tests

More Testing & QA