ashlr__test
Run a test suite and parse output — bun/vitest/jest/pytest/go test. Compresses runner noise into one failure block per failure.
ashlr__test runs a test command and returns a structured summary: pass/fail counts, per-failure blocks (test name + error + stack), and timing. Passes, setup output, and progress bars are stripped.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
command | string | no | Test command to run (e.g. bun test, pytest tests/, go test ./...). |
cwd | string | no | Working directory (default: cwd). Must be inside the current cwd. |
files | string[] | no | Specific test file paths to pass to the runner. |
runner | "auto" | "bun" | "vitest" | "jest" | "pytest" | "go" | no | Test runner to use. 'auto' detects from package.json / go.mod / pytest.ini (default: auto). |
failuresOnly | boolean | no | Return only failure details, not per-test pass output (default: true). |
bypassSummary | boolean | no | Show all failures instead of truncating at 2 inline (default: false). |
watch | boolean | no | Run tests once, then fork into a background watch session that re-runs on .ts/.tsx/.js/.jsx/.py/.go file changes (debounced 200ms). Returns a session id; stream output with ashlr__bash_tail, stop with ashlr__bash_stop (default: false). |
grep | string | no | Test name filter (informational label stored on the watch session). |
Supported runners
| Runner | Auto-detected by |
|---|---|
| bun test | bun test prefix |
| vitest | vitest in command |
| jest | jest in command |
| pytest | pytest in command |
| go test | go test in command |
| mocha | mocha in command |
Typical output
Typical savings
−70–85% vs raw test runner stdout. Large test suites often print thousands of lines of progress; ashlr__test compresses that to one block per failure.
Related
ashlr__bash— for test commands that aren't auto-parsed- Capabilities matrix