Run Tests
run_testsRun project tests in a disposable sandbox and get pass/fail counts, failing test names, and exit code. Auto-detects the test runner for quick verification.
Instructions
Run the project's test suite inside a sandbox and parse the results.
USE THIS instead of execute_experiment when you want to know whether the project still works -- it detects the runner (npm, pytest, cargo, go, make) by looking at what is actually in the sandbox, and parses counts out of the output.
RETURNS exit code, stdout/stderr, duration and, when parseable, a summary with passed/failed/total and the names of failing tests. If test_summary.detected is false, trust the exit code, not the zeros.
Pass command to override detection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | No | Explicit test command. Omit to auto-detect. | |
| timeout | No | Seconds before the run is killed. | |
| experiment_id | Yes | The experiment to test in. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| job_id | Yes | ||
| status | Yes | ||
| stderr | No | ||
| stdout | No | ||
| command | Yes | ||
| exit_code | No | ||
| framework | No | ||
| duration_ms | No | ||
| test_summary | No | ||
| experiment_id | Yes | ||
| stderr_truncated | No | ||
| stdout_truncated | No |