/aqe-execute
Execute test suites with parallel orchestration, retry logic, and real-time reporting
> /plugin marketplace add proffesor-for-testing/agentic-qe> /plugin install agentic-qe-fleet@agentic-qe
Command definition
aqe-execute.mdname: 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
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
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.
Other commands on agentic-qe.
agent-coordination
CommandCoordination patterns for multi-agent collaboration.
agent-spawning
CommandGuide to spawning agents with Claude Code's Task tool.
agent-types
CommandComplete guide to all 87 available agent types in Claude Flow V3
More commands from other plugins.
bkit
Commandbkit plugin help - Show all available bkit functions. Workaround for skills autocomplete issue. Use "/bkit" or just type "bkit…
check-code-quality
CommandYou are performing static code quality analysis on the Scopy package: `$ARGUMENTS`
bind-docs-sync
CommandCreate a docs-sync binding between local docs and a YApi category.

