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
commandstringyesTest command to run (e.g. bun test, pytest tests/, go test ./...).
cwdstringnoWorking directory (default: project root).
filterstringnoPattern to pass to the test runner's filter flag (e.g. --test-name-pattern).

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