MCP HubMCP Hub
返回技能列表

managing-test-environments

jeremylongshore
更新于 Today
58 次查看
712
74
712
在 GitHub 上查看
aitesting

关于

This skill enables Claude to manage isolated, reproducible test environments using Docker Compose and Testcontainers. Developers should use it when they need to programmatically set up test infrastructure, configure environment variables, and ensure proper cleanup. It's triggered by terms like "test environment," "docker compose," or "testcontainers."

快速安装

Claude Code

推荐
插件命令推荐
/plugin add https://github.com/jeremylongshore/claude-code-plugins-plus
Git 克隆备选方式
git clone https://github.com/jeremylongshore/claude-code-plugins-plus.git ~/.claude/skills/managing-test-environments

在 Claude Code 中复制并粘贴此命令以安装该技能

技能文档

Overview

This skill empowers Claude to orchestrate and manage isolated test environments, ensuring consistent and reproducible testing processes. It simplifies the setup and teardown of complex testing infrastructures by leveraging Docker Compose, Testcontainers, and environment variable management.

How It Works

  1. Environment Creation: Generates isolated test environments with databases, caches, message queues, and other dependencies.
  2. Docker Compose Management: Creates and configures docker-compose.yml files to define the test infrastructure.
  3. Testcontainers Integration: Sets up programmatic container management using Testcontainers for dynamic environment configuration.

When to Use This Skill

This skill activates when you need to:

  • Create an isolated test environment for a software project.
  • Manage Docker Compose files for test infrastructure.
  • Set up programmatic container management using Testcontainers.

Examples

Example 1: Setting up a Database Test Environment

User request: "Set up a test environment with a PostgreSQL database and a Redis cache using Docker Compose."

The skill will:

  1. Generate a docker-compose.yml file defining PostgreSQL and Redis services.
  2. Configure environment variables for database connection and cache access.

Example 2: Creating a Test Environment with Message Queue

User request: "Create a test environment with RabbitMQ using Testcontainers."

The skill will:

  1. Programmatically create a RabbitMQ container using Testcontainers.
  2. Configure environment variables for message queue connection.

Best Practices

  • Configuration: Ensure that all necessary environment variables are properly configured for the test environment.
  • Cleanup: Implement cleanup routines to remove test environments after use.
  • Isolation: Verify that the test environment is properly isolated from other environments.

Integration

This skill integrates with other Claude Code plugins to manage the deployment and execution of tests within the created environments. It can work with CI/CD tools to automate testing workflows.

GitHub 仓库

jeremylongshore/claude-code-plugins-plus
路径: backups/skills-batch-20251204-000554/plugins/testing/test-environment-manager/skills/test-environment-manager
aiautomationclaude-codedevopsmarketplacemcp

相关推荐技能