agentsclimarketplace

Orchestrating test execution

Skill jeremylongshore/claude-code-plugins-plus-skills/plugins/testing/test-orchestrator/skills/orchestrating-test-execution

425 plugins, 2,810 skills, 200 agents for Claude Code. Open-source marketplace at tonsofskills.com with the ccpi CLI package manager.

Install
npx -y skills add jeremylongshore/claude-code-plugins-plus-skills --skill orchestrating-test-execution

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

'Test coordinate parallel test execution across multiple environments and frameworks.

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

5.0 KB, as published. Nobody here has run it

Test Orchestrator

Overview

Coordinate parallel test execution across multiple test suites, frameworks, and environments. Manages test splitting, worker allocation, result aggregation, and intelligent retry strategies.

Prerequisites

  • Test runner with parallel execution support (Jest, Vitest, pytest-xdist, Playwright, or JUnit 5)
  • CI/CD platform configured (GitHub Actions, GitLab CI, CircleCI, or Jenkins)
  • Test suite with consistent pass rates (flaky tests identified and tagged)
  • Sufficient CI runner resources for parallel worker count
  • Test result reporting tool (JUnit XML, Allure, or equivalent)

Instructions

  1. Analyze the existing test suite using Grep and Glob to catalog all test files, their framework, approximate run time, and dependency requirements.
  2. Classify tests into execution tiers:
    • Tier 1 (Fast): Unit tests with no I/O -- target under 30 seconds total.
    • Tier 2 (Medium): Integration tests requiring local services -- target under 3 minutes.
    • Tier 3 (Slow): E2E and browser tests -- target under 10 minutes.
  3. Configure parallel execution for each tier:
    • Split unit tests across N workers using jest --shard=i/N or pytest -n auto.
    • Shard E2E tests by test file using Playwright --shard=i/N or Cypress parallelization.
    • Assign heavier integration tests to dedicated workers with more resources.
  4. Create a CI pipeline configuration that runs tiers in parallel:
    • Tier 1 and Tier 2 run concurrently on separate jobs.
    • Tier 3 runs after a fast pre-check gate passes.
    • Each tier reports results to a unified collection step.
  5. Implement intelligent retry logic for flaky tests:
    • Tag known flaky tests with @flaky or equivalent marker.
    • Retry failed tests up to 2 times before marking as failed.
    • Track flaky test frequency in a log file for triage.
  6. Aggregate results from all parallel workers into a single report:
    • Merge JUnit XML files from each shard.
    • Calculate total pass/fail/skip counts and execution time.
    • Identify the slowest tests for optimization targets.
  7. Write the orchestration configuration to the project's CI config file and validate it with a dry run.

Output

  • CI pipeline configuration file (.github/workflows/test.yml, .gitlab-ci.yml, or equivalent)
  • Test sharding configuration with worker count and split strategy
  • Merged test result report in JUnit XML or JSON format
  • Execution timeline showing parallel job durations and bottlenecks
  • Flaky test inventory with retry counts and failure patterns

Error Handling

ErrorCauseSolution
Shard produces zero testsUneven test distribution or incorrect shard indexVerify shard count matches actual test file count; use file-based splitting
Worker out of memoryToo many parallel processes on one runnerReduce --maxWorkers or -n count; increase runner memory; use --workerIdleMemoryLimit
Test ordering dependencyTests pass in isolation but fail in specific shard orderAdd --randomize flag; fix shared state leaks; enforce test independence
Result aggregation mismatchMissing shard results due to job timeoutSet job-level timeouts higher than test timeouts; add result upload as a separate step
CI cache miss slowing startupDependencies not cached between parallel jobsConfigure dependency caching per lockfile hash; use a shared setup job

Examples

GitHub Actions matrix strategy for Jest sharding:

jobs:
  test:
    strategy:
      matrix:
        shard: [1, 2, 3, 4]
    steps:
      - run: npx jest --shard=${{ matrix.shard }}/4 --ci --reporters=jest-junit
      - uses: actions/upload-artifact@v4
        with:
          name: results-${{ matrix.shard }}
          path: junit.xml
  merge:
    needs: test
    steps:
      - uses: actions/download-artifact@v4
      - run: npx junit-merge -d results-* -o merged-results.xml

pytest-xdist parallel execution:

pytest -n auto --dist worksteal -q --junitxml=results.xml

Playwright sharded execution:

npx playwright test --shard=1/3 --reporter=junit

Resources

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.