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
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 -yInstalls 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
- database-patterns.md: SQL Server, PostgreSQL, and migration testing examples
- infrastructure-patterns.md: Redis, RabbitMQ, multi-container networks, container reuse, and Respawn
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- Dotnet Slopwatch618
- Crap Analysis610
- Playwright Blazor Testing589
- Dotnet Local Tools579
- Aspire Integration Testing552
- Mjml Email Templates541
- Aspire Service Defaults526
- Snapshot Testing515
- Aspire Configuration514
- Dotnet Devcert Trust486
- Skills Index Snippets485
- Playwright Ci Caching483
- Akka Net Best Practices477
- Mailpit Integration471
- OpenTelemetry NET Instrumentation464
- Verify Email Snapshots464
- Akka Hosting Actor Patterns460
- Akka Net Testing Patterns457
- Akka Net Management456
- Akka Net Aspire Configuration442
- Marketplace Publishing435
- Modern Csharp Coding Standards2.4K
- Csharp Concurrency Patterns1.7K
- Efcore Patterns1.7K
Similar to Testcontainers Integration Tests
More Testing & QAtestcontainerswshaddix/dotnet-skills574 installsPatterns for real-infrastructure .NET integration tests using Testcontainers instead of mocks.
aspire-integration-testingaaronontheweb/dotnet-skills552 installsIntegration test patterns for .NET Aspire apps using xUnit fixtures, real dependencies, and runtime endpoint discovery.
csharp-testingaffaan-m/ecc11K installsC# and .NET testing patterns using xUnit, FluentAssertions, mocking, and integration test setups.
integration-testingaj-geddes/useful-ai-prompts566 installsDesign integration tests that verify real API, database, and service interactions without mocking the data layer.
mailpit-integrationaaronontheweb/dotnet-skills471 installsLocal email testing with Mailpit in .NET Aspire that captures outgoing mail without delivering it.