Set up and manage isolated test environments
Creates isolated test environments with Docker Compose and Testcontainers for reproducible testing.
/plugin marketplace add jeremylongshore/claude-code-plugins-plus-skills/plugin install test-environment-manager@claude-code-plugins-plusCreate and manage isolated test environments using Docker Compose, Testcontainers, and environment variables for consistent, reproducible testing.
# docker-compose.test.yml
version: '3.8'
services:
postgres-test:
image: postgres:16
environment:
POSTGRES_DB: test_db
POSTGRES_USER: test_user
POSTGRES_PASSWORD: test_pass
ports:
- "5433:5432"
redis-test:
image: redis:7-alpine
ports:
- "6380:6379"
localstack:
image: localstack/localstack
environment:
SERVICES: s3,sqs,dynamodb
ports:
- "4566:4566"
// testcontainers setup
const { PostgreSqlContainer } = require('@testcontainers/postgresql');
let container;
beforeAll(async () => {
container = await new PostgreSqlContainer().start();
process.env.DATABASE_URL = container.getConnectionUri();
});
afterAll(async () => {
await container.stop();
});