get_tests_for
Find test files and test functions covering a symbol or file using graph-resolved mapping, not just filename patterns.
Instructions
Find test files and test functions that cover a given symbol or file. Use instead of Glob/Grep — understands test-to-source mapping, not just filename conventions. When symbol_id (or fqn) is provided, narrows file-level reachability to test files that actually exercise the symbol — graph-resolved calls (direct_invocation), import + textual reference (import_and_call), or bare textual mention (text_match). Default min_confidence is import_and_call. For project-wide test coverage gaps use get_untested_symbols instead. Read-only. Returns JSON: { tests: [{ test_file, symbol_id, test_name, line, edge_type, confidence }], total, symbol_filtered?, fell_back_to_file_level? }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol_id | Yes | Symbol ID to find tests for | |
| fqn | Yes | Fully qualified name to find tests for | |
| file_path | Yes | File path to find tests for | |
| min_confidence | No | Minimum confidence when narrowing by symbol_id/fqn. Default: import_and_call. Ignored in file-level mode. |