test-orchestrator

协调复杂的测试流程,根据代码变更智能筛选受影响的测试用例,并行执行独立任务以缩短整体运行时间,同时管理单元、集成与端到端测试间的依赖关系,适用于高效回归测试及持续集成场景。

快捷安装

在终端运行此命令,即可一键安装该 Skill 到您的 Claude 中

npx skills add jeremylongshore/claude-code-plugins-plus-skills --skill "test-orchestrator"

Overview

This skill empowers Claude to manage and execute complex test suites efficiently. It leverages the test-orchestrator plugin to handle test dependencies, parallel execution, and intelligent test selection, resulting in faster and more reliable testing processes.

How It Works

  1. Workflow Definition: Claude uses the plugin to define the test workflow, specifying dependencies between tests.
  2. Parallelization: The plugin identifies independent tests and executes them in parallel to reduce overall execution time.
  3. Smart Selection: Based on code changes, the plugin selects only the affected tests to run, minimizing unnecessary execution.

When to Use This Skill

This skill activates when you need to:

  • Optimize test execution time.
  • Manage dependencies between tests.
  • Run only relevant tests after code changes.

Examples

Example 1: Optimizing Regression Testing

User request: “Orchestrate the regression tests for the user authentication module after the recent code changes.”

The skill will:

  1. Use the test-orchestrator plugin to identify the tests affected by the changes in the user authentication module.
  2. Execute those tests in parallel, respecting any dependencies.

Example 2: Setting up a CI/CD Pipeline

User request: “Set up a test workflow for the CI/CD pipeline that runs unit tests, integration tests, and end-to-end tests with appropriate dependencies.”

The skill will:

  1. Define a test workflow using the test-orchestrator plugin, specifying the order and dependencies between the different test suites (unit, integration, end-to-end).
  2. Configure the pipeline to trigger the orchestrated test execution upon code commits.

Best Practices

  • Dependency Mapping: Clearly define dependencies between tests to ensure correct execution order.
  • Granularity: Break down large test suites into smaller, more manageable units for better parallelization.
  • Change Tracking: Integrate the test-orchestrator with version control to accurately identify affected tests.

Integration

This skill integrates with the test-orchestrator plugin and can be incorporated into CI/CD pipelines. It can also be used in conjunction with other code analysis tools to further refine test selection.