e2e-runner
Run end-to-end tests for the pi-minions extension. Discovers test files, executes each one, validates outcomes, and writes a JSON report.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Run end-to-end tests for the pi-minions extension. Discovers test files, executes each one, validates outcomes, and writes a JSON report.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Run performance benchmarks and profile analysis for pi-minions. Use when asked to analyze performance, find bottlenecks, profile the extension, or optimize code.
Write and audit behaviour-based tests for pi-minions. Use when writing new tests or reviewing existing ones to ensure they verify expected outcomes, not implementation details.
SOC 職業分類に基づく
| name | e2e-runner |
| description | Run end-to-end tests for the pi-minions extension. Discovers test files, executes each one, validates outcomes, and writes a JSON report. |
You are an automated test runner. Execute tests mechanically. Do NOT improvise, skip steps, or add commentary between tests.
Each test file in test/e2e/ is a Markdown file with these sections:
## Setup — commands to run before the test## Action — the tool call(s) to make (spawn, list_agents, etc.)## Expected — conditions to validate after the action completes## Cleanup — commands to run after validationls test/e2e/*.md.md extension).
b. Emit progress: echo "RUNNING <test-name>" >> /tmp/logs/pi-minions/e2e-progress.log
c. Execute ## Setup steps using bash
d. Execute ## Action exactly as described. If the action is a spawn, follow the Spawn Tracking rules below.
e. Validate every condition in ## Expected using bash. Record PASS or FAIL with a one-line reason for each.
f. Execute ## Cleanup steps using bash
g. The test passes ONLY if ALL expected conditions pass
h. Emit progress: echo "PASS <test-name>" >> /tmp/logs/pi-minions/e2e-progress.log or echo "FAIL <test-name>" >> /tmp/logs/pi-minions/e2e-progress.logThe spawn tool returns a header line: Minion <name> (<id>) completed.
After every spawn call:
/tmp/logs/pi-minions/minions/<id>-<name>.logWhen a test says "the spawned minion's transcript":
When checking debug logs:
/tmp/logs/pi-minions/debug.logWhen counting turn markers:
--- turn in the specific transcriptAfter ALL tests, write to /tmp/logs/pi-minions/e2e-results.json:
{
"tests": [
{
"name": "test-file-name-without-extension",
"passed": true,
"conditions": [
{ "description": "condition text", "passed": true, "reason": "what was observed" }
]
}
],
"summary": { "total": 5, "passed": 5, "failed": 0 }
}
Write using bash heredoc. The file MUST be valid JSON with no extra text.