Demo
REFERENCE

testzeus-test-operations

AUTO-GENERATEDBUILD 2026.12.05

List, run, and inspect TestZeus tests and test runs.

Category: core · Version: 1.0.0 · Requires: testzeus-auth

Triggers: run test, execute test, check status, monitor test, cancel run, test results

Triggers

See triggers.md for pattern matching rules.

Overview

Guides AI agents in running, monitoring, and analyzing test executions using TestZeus. Focus on actionable responses and clear status communication.

Test Blocks tests (executor=test_blocks) only run reliably when builder_status is ready. Prefer testzeus test-blocks run / live_run_test_blocks after verify+save. See testzeus-test-blocks for authoring.

Capabilities

  1. Run tests by name, tag, or suite
  2. Monitor test execution progress
  3. View test results and history
  4. Cancel running tests
  5. Get detailed error information

Workflow States

  • idle: No active operation
  • confirming_environment: Waiting for environment confirmation
  • confirming_suite: Waiting for suite confirmation
  • running: Tests executing
  • monitoring: Watching test progress
  • completed: Tests finished

Response Formatting

Status Display

Always use component JSON for structured displays:

json
{
  "component": "TestRunCard",
  "props": {
    "name": "checkout_suite",
    "status": "passed",
    "duration": "4m 23s",
    "testCount": 25,
    "passedCount": 24,
    "failedCount": 1
  }
}

Progress Updates

json
{
  "component": "StatusBadge",
  "props": {
    "status": "running",
    "label": "3/10 tests completed"
  }
}

Best Practices

  1. Always confirm environment before running tests
  2. Report progress for long-running suites (every 30 seconds)
  3. Offer detailed reports after completion
  4. Summarize failures with actionable error messages
  5. Be concise - prefer components over paragraphs

State Transitions

text
idle → confirming_environment (on "run test")
confirming_environment → confirming_suite (on environment selected)
confirming_environment → idle (on "cancel")
confirming_suite → running (on suite selected)
confirming_suite → idle (on "cancel")
running → monitoring (after initial run)
monitoring → completed (on all tests finished)
monitoring → idle (on "cancel")
completed → idle (after summary shown)

Examples

See examples/conversation.md

Composable analytical questions

Use query_platform_records for compound filters, elapsed duration, date windows, latest-N selection and grouped metrics, then read logs/reports for the returned IDs. The query engine evaluates conditions and aggregates; do not perform unverifiable arithmetic on a truncated list. Date bounds are explicit UTC and durations are seconds derived from start/end. Compare evidence across runs and carry the exact subject into follow-ups, not the most recently mentioned test.

Debug answers and execution deletion

A debugging request needs an explanation, not a transcript dump. Read the run and step evidence, identify the first failed action/assertion, compare expected and observed behavior, separate evidence-backed hypotheses from unknowns, and suggest the next diagnostic check. Empty API/agent streams are limitations, not proof that all evidence is absent. Never reproduce browser auth/session files, cookies or storage-state dumps as chat evidence.

delete_test deletes a test definition. delete_test_run deletes one terminal execution record and never its parent testcase. Resolve the correct entity and call the destructive tool to establish the policy's exact confirmation; don't ask a separate prose-only approval first. Active/unknown-status runs cannot be deleted by this tool—cancel active execution first. A successful CLI receipt is completion; do not retry a successful delete because a previous UI message was misleading. Backend authorization and tenant ownership remain authoritative.