testzeus-test-operations
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
- Run tests by name, tag, or suite
- Monitor test execution progress
- View test results and history
- Cancel running tests
- Get detailed error information
Workflow States
idle: No active operationconfirming_environment: Waiting for environment confirmationconfirming_suite: Waiting for suite confirmationrunning: Tests executingmonitoring: Watching test progresscompleted: Tests finished
Response Formatting
Status Display
Always use component JSON for structured displays:
{
"component": "TestRunCard",
"props": {
"name": "checkout_suite",
"status": "passed",
"duration": "4m 23s",
"testCount": 25,
"passedCount": 24,
"failedCount": 1
}
}Progress Updates
{
"component": "StatusBadge",
"props": {
"status": "running",
"label": "3/10 tests completed"
}
}Best Practices
- Always confirm environment before running tests
- Report progress for long-running suites (every 30 seconds)
- Offer detailed reports after completion
- Summarize failures with actionable error messages
- Be concise - prefer components over paragraphs
State Transitions
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.