Bash test (structured)
bash_testRun .bats or .sh test scripts and get structured per-case pass/fail results plus summary parsed from TAP or test output, falling back to exit-code-only when unrecognized.
Instructions
Run a shell test script — bats .bats files via --tap, or a plain .sh harness — and return structured results: per-case pass/fail plus a summary parsed from TAP or N tests, M failures output, falling back to exit-code-only when the format is unrecognized. Executes the script, so it is gated by BASH_MCP_MODE.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory | |
| file | No | Required. Test script path (.bats or .sh) | |
| timeout | No | Timeout in ms |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| failed | Yes | ||
| passed | Yes | ||
| skipped | Yes | ||
| summary | Yes | ||
| exitCode | Yes | ||
| retained | No |