Run test (filtered)
run_test_filteredRuns a test from a fixed allowlist and returns filtered failure-relevant output: command, exit code, and lines matching error/failed/assert/expected/traceback/test-file-path, capped at 120 lines.
Instructions
Run one of a fixed allowlist of test commands (no arbitrary shell) and return only the filtered failure-relevant output: command, exit code, and lines matching error/failed/assert/expected/traceback/test-file-path, tail-capped at 120 lines (falls back to last 80 raw lines if nothing matches).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | Absolute path to the repository root | |
| command | Yes | One of: npm_test, pnpm_test, pytest |