ashlr

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

ParameterTypeRequiredDescription
commandstringnoTest command to run (e.g. bun test, pytest tests/, go test ./...).
cwdstringnoWorking directory (default: cwd). Must be inside the current cwd.
filesstring[]noSpecific test file paths to pass to the runner.
runner"auto" | "bun" | "vitest" | "jest" | "pytest" | "go"noTest runner to use. 'auto' detects from package.json / go.mod / pytest.ini (default: auto).
failuresOnlybooleannoReturn only failure details, not per-test pass output (default: true).
bypassSummarybooleannoShow all failures instead of truncating at 2 inline (default: false).
watchbooleannoRun 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).
grepstringnoTest name filter (informational label stored on the watch session).

Supported runners

RunnerAuto-detected by
bun testbun test prefix
vitestvitest in command
jestjest in command
pytestpytest in command
go testgo test in command
mochamocha in command

Typical output

Tests: 3 failed, 142 passed (145 total) — 1.8s

FAIL  src/auth/handler.test.ts > handleAuthRequest > returns 401 on bad token
  AssertionError: expected 200 to equal 401
    at handler.test.ts:42:18

FAIL  src/auth/handler.test.ts > handleAuthRequest > logs the attempt
  Error: spy not called
    at handler.test.ts:61:5

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.

On this page