test_bridge
Run tests, discover available test cases, and receive suggestions for tests to run after code changes, with enriched failure context.
Instructions
Run tests, parse output, enrich failures with context. actions: run/suggest/discover. Find tests? find_tests.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | For action=suggest/discover: source file path relative to workspace_dir | |
| scope | No | Test scope: 'tests/', 'tests/test_a.py', 'tests/test_a.py::test_x', '.' | |
| action | Yes | run: execute tests; suggest: recommend tests after changes; discover: find available tests | |
| symbol | No | For action=suggest: narrow to a specific symbol | |
| timeout | No | Test execution timeout in seconds (default: 60) | |
| framework | No | Override: pytest/jest/vitest/go_test/cargo_test/maven/gradle | |
| workspace_dir | Yes | REQUIRED: project root (abs). reindex first if new. |