tests_for
Find test functions that transitively cover a target symbol by walking the call graph backwards, labeling each with its framework to pick the right runner.
Instructions
Find test functions that transitively cover a target symbol (Phase 13.10). Walks the call graph backwards from <target>, keeps rows under recognized test-path globs (Rust / Python / TS-JS / Go / Java / Kotlin / C# / C++), stamps each row with a framework label (pytest, jest, go-test, …) so an agent can pick the right runner without parsing paths. Prefer over grep test.*Foo — that misses transitively-covered helpers and produces lots of false positives. v1.20.0 (D5) surface — the CLI subcommand exists since v1.19.0 but was MCP-invisible.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results to return. | |
| symbol | No | DEPRECATED alias for `target`; still accepted, emits a deprecated_args notice in _meta. | |
| target | Yes | Symbol whose test coverage to find — the function/method/class you want to know is tested. | |
| exclude | No | Blacklist results by path glob; wins over include (repeatable) | |
| include | No | Whitelist results by path glob, gitignore syntax (repeatable) | |
| max_hops | No | Maximum reverse-call-graph hops from `target`. Default 6. | |
| auto_update | No | Auto-update the index if stale, or bootstrap it if missing, before running (default: true) | |
| async_update | No | With auto_update, refresh a stale index in the background instead of waiting for it: results come from the index already on disk and _meta.vex.dev/stale says so (default: false) | |
| project_root | No | Absolute path to the project root (defaults to the MCP working directory) | |
| test_pattern | No | Glob patterns for test paths (repeatable). When set, REPLACES the default pattern set (does NOT append) — pass the full set you want. | |
| no_stale_check | No | Skip the staleness check that runs before each call; assumes the index is fresh. | |
| include_fixtures | No | Admit non-test-named helpers (fixtures) under test paths via a one-hop forward callee walk. Default off — only `test_*` / `*Test` names surface. |