test_bridge
Run tests, discover available tests, and get failure context with suggestions after code changes. Use actions: run, suggest, or discover.
Instructions
Run tests, parse output, enrich failures with context. actions: run/suggest/discover. Find tests? find_tests.
Input 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. |