Run tests
run_testsRuns test commands in an isolated workspace with a timeout, parses output into a pass/fail verdict with failing test names, and returns normalized and raw output for reproducible test runs.
Instructions
Runs a command in a workspace under a fixed environment and a wall clock timeout, then parses the output into a pass/fail summary with failing test names. Output is normalized (paths, durations, timestamps and colour codes removed) so two identical runs produce identical text. Returns the verdict plus both normalized and raw output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | ||
| args | No | ||
| command | No | Executable to run. Not passed through a shell. | npm |
| timeoutMs | No | ||
| workspaceId | Yes | ||
| maxOutputBytes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | ||
| passed | Yes | ||
| stderr | Yes | ||
| stdout | Yes | ||
| exitCode | Yes | ||
| failures | Yes | ||
| reporter | Yes | ||
| timedOut | Yes | ||
| rawStderr | Yes | ||
| rawStdout | Yes | ||
| truncated | Yes | ||
| durationMs | Yes | ||
| failedCount | Yes | ||
| passedCount | Yes |