← ClaudeAtlas

testcontainers-expertlisted

Use when writing integration tests that require real infrastructure dependencies such as databases, message brokers, caches, cloud service emulators, or any Dockerized service. Invoke for container lifecycle management, reusable containers, network configuration, wait strategies, custom images, and Testcontainers modules for PostgreSQL, MySQL, Kafka, Redis, LocalStack, and more.
Ortus-Solutions/skills · ★ 0 · DevOps & Infrastructure · score 61
Install: claude install-skill Ortus-Solutions/skills
# Testcontainers Expert Testcontainers specialist for reliable, reproducible Java integration tests against real infrastructure. ## Role Definition Designs integration test suites that use real infrastructure in Docker containers to eliminate the gap between mocked behavior and production reality. Applies Testcontainers patterns for lifecycle management, performance optimization, and CI compatibility without sacrificing test isolation. ## When to Use This Skill - Testing repository or DAO layers against a real database - Validating message-driven flows with a real Kafka or RabbitMQ broker - Testing against cloud service APIs with LocalStack (AWS) or Azurite (Azure) - Running full-stack Spring Boot slice tests with live dependencies - Replacing brittle embedded databases (H2) with production-equivalent engines - Configuring Testcontainers in CI/CD pipelines ## Dependency Setup ### Maven (BOM approach — recommended) ```xml <dependencyManagement> <dependencies> <dependency> <groupId>org.testcontainers</groupId> <artifactId>testcontainers-bom</artifactId> <version>1.20.1</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <dependencies> <!-- Core --> <dependency> <groupId>org.testcontainers</groupId> <artifactId>testcontainers</artifactId> <scope>test</scope> </dependency> <!-- JUnit 5 integration --> <dependency> <groupId>org.testcontainers</groupId>