Skip to content
Testing
Command

/aqe-execute

Execute test suites with parallel orchestration, retry logic, and real-time reporting

From plugin
agentic-qe
529149 skills169 agents149 commands1 MCP
> /plugin marketplace add proffesor-for-testing/agentic-qe
> /plugin install agentic-qe-fleet@agentic-qe

Command definition

aqe-execute.md
name: aqe-execute
description: Execute test suites with parallel orchestration, retry logic, and real-time reporting

AQE Execute Tests

Execute test suites with parallel orchestration, retry logic, and real-time reporting.

Usage

aqe run [suite] [options]
# or
/aqe-execute [suite] [options]

Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | `suite` | path | `./tests` | Test suite path or pattern | | `--framework` | string | `auto-detect` | Testing framework to use | | `--parallel` | number | `auto` | Parallel worker count (auto = CPU cores) | | `--coverage` | boolean | `true` | Collect coverage data | | `--retry` | number | `2` | Retry count for flaky tests | | `--timeout` | number | `30000` | Test timeout in milliseconds | | `--bail` | boolean | `false` | Stop on first failure | | `--watch` | boolean | `false` | Watch mode for continuous testing | | `--reporter` | string | `default` | Reporter: default, json, html, junit | | `--filter` | string | - | Test pattern filter (regex) |

Examples

Run All Tests

aqe run

Executes all tests in the default test directory with auto-detected framework.

Run Specific Suite in Parallel

aqe run tests/integration --parallel 8 --coverage

Runs integration tests with 8 parallel workers and coverage collection.

Watch Mode for TDD

aqe run tests/unit --watch --bail

Runs tests in watch mode, stopping on first failure for rapid TDD feedback.

CI/CD Execution

aqe run --reporter junit --bail --no-coverage

Optimized for CI/CD with JUnit reporting and no coverage overhead.

Filtered Test Execution

aqe run --filter "user.*test" --parallel 4

Runs only tests matching the regex pattern with parallel execution.

Integration with Claude Code

Spawning Test Executor Agent

// Use Claude Code's Task tool to spawn the test executor agent
Task("Execute comprehensive test suite", `
  Run all tests with the following configuration:
  - Parallel workers: 8
  - Coverage: enabled
  - Retry flaky tests: 2 attempts
  - Reporter: JSON for CI integration

  Monitor real-time progress and report failures immediately.
  Store execution results in memory: aqe/execution/results/{run-id}
`, "qe-test-executor")

Coordinated Execution Workflow

// Execute tests and coordinate with analyzer
[Single Message]:
  Task("Execute test suite", "Run all unit tests with coverage", "qe-test-executor")
  Task("Analyze coverage", "Real-time coverage gap detection", "qe-coverage-analyzer")

  TodoWrite({ todos: [
    {content: "Execute all unit tests", status: "in_progress", activeForm: "Executing tests"},
    {content: "Monitor coverage in real-time", status: "in_progress", activeForm: "Monitoring coverage"},
    {content: "Analyze test failures", status: "pending", activeForm: "Analyzing failures"},
    {content: "Generate execution report", status: "pending", activeForm: "Generating report"}
  ]})

Agent Coordination

Primary Agent

  • **qe-test-executor**: Main agent responsible for test execution orchestration

Supporting Agents

  • **qe-coverage-analyzer**: Real-time coverage tracking
  • **qe-performance-tester**: Performance monitoring during execution

Coordination Flow

1. Pre-Task Hook
   ├─> Retrieve test suite metadata
   ├─> Retrieve flaky test data for retry logic
   ├─> Auto-detect framework if not specified
   └─> Calculate optimal worker count

2. Test Execution
   ├─> Spawn parallel workers
   ├─> Execute tests with real-time reporting
   ├─> Collect coverage data
   ├─> Retry flaky tests automatically
   └─> Track performance metrics

3. Post-Task Hook
   ├─> Store execution results
   ├─> Update coverage data
   ├─> Identify new flaky tests
   ├─> Train neural patterns
   └─> Notify fleet of completion

Memory Operations

Input Memory Keys

# Retrieve test suite metadata
npx ruflo@3.76.0 memory retrieve --key "aqe/test-suite/${suite}"

# Retrieve flaky test data
npx ruflo@3.76.0 memory retrieve --key "aqe/flaky-tests"

# Retrieve execution configuration
npx ruflo@3.76.0 memory retrieve --key "aqe/execution-config"

Output Memory Keys

# Store execution results
npx ruflo@3.76.0 memory store \
  --key "aqe/execution/results/${run_id}" \
  --value '{"numTotalTests": 120, "numPassedTests": 118, "numFailedTests": 2}'

# Update current coverage
npx ruflo@3.76.0 memory store \
  --key "aqe/coverage/current" \
  --value '{"pct": 94.5}'

# Store test failures
npx ruflo@3.76.0 memory store \
  --key "aqe/test-failures" \
  --value '[{"test": "user-auth-test", "error": "timeout"}]'

Hooks and Coordination

Pre-Task Hook

# One id per run; post-task below records the outcome against it
RUN_ID="aqe-execute-$(date +%s)"
npx ruflo@3.76.0 hooks pre-task \
  --task-id "${RUN_ID}" \
  --description "Execute test suite: ${suite}"

During Execution (real-time updates)

# Notify fleet of progress
npx ruflo@3.76.0 hooks notify \
  --message "Executing: ${TEST_FILE} (${CURRENT}/${TOTAL})"

Post-Task Hook

# Set TASK_SUCCEEDED to true or false from the actual result; results go to `memory store` above
npx ruflo@3.76.0 hooks post-task \
  --task-id "${RUN_ID:?run the pre-task block first, in the same shell}" \
  --success "${TASK_SUCCEEDED:?set to true or false}" \
  --agent "qe-parallel-executor" \
  --task "Execute test suite: ${suite}"

Expected Outputs

Success Output

🧪 Executing test suite: ./tests
📦 Auto-detected framework: jest
⚡ Using 8 parallel workers
🚀 Starting test execution...

Running tests:
  ✓ tests/unit/user-service.test.ts (12 tests)
  ✓ tests/unit/auth-service.test.ts (8 tests)
  ✓ tests/integration/api.test.ts (15 tests)

📊 Execution Summary:
   Total: 120
   Passed: 120
   Failed: 0
   Coverage: 94.5%
   Duration: 12.3s

✅ All tests passed!

Failure O

Read more
@proffesor-for-testing
Ships withagentic-qe

Quality engineering tools for your coding agent. Generate tests, investigate coverage gaps, analyze flaky behavior and coordinate quality checks across the software lifecycle. Keep the findings close to the code and use them to make a better quality decision.

529119 skills169 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
529
Star history of proffesor-for-testing/agentic-qe on GitHub, a chart by star-history.com

Other commands on agentic-qe.

More commands from other plugins.

bkit

bkit

Command

bkit plugin help - Show all available bkit functions. Workaround for skills autocomplete issue. Use "/bkit" or just type "bkit…

bkit2w606
@popup-studio-ai@popup-studio-aiInstall Command
review

review

Command

Open the Canary session viewer and triage a recorded session.

canary3w496
@0xnyn@0xnynInstall Command