run_tests
Execute vitest test suite with safety constraints, supporting optional test name filter or path restriction, and return results including pass/fail status, exit code, and duration.
Instructions
Run the consumer project's vitest test suite under a compiled safety envelope: fixed argv (no shell interpolation), 120s timeout, 64KB output cap per stream. Shell-exec pilot per the 2026-07-07 council cut — vitest projects only; other runners (Pest / PHPUnit, pytest, Jest) return an error until a future council round approves them. Pass filter (vitest --testNamePattern) or path (in-tree file or directory) to narrow the run. Returns runner, passed, exit_code, timed_out, truncated stdout/stderr, and duration_ms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Restrict to tests under this directory. | |
| filter | No | Restrict to tests matching this name pattern. |