get_relevant_tests
Identify which tests are affected by code changes by providing files or a diff, enabling targeted test runs without scanning the full suite.
Instructions
Returns a list of tests likely impacted by the given files or diff.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for git diff | /app |
| diff | No | Unified diff or name-only list of files | |
| files | No | Files to analyze | |
| command | No | Test command override (can include {tests}) | |
| src_dir | No | Source directory to scan for dependencies | src |
| base_ref | No | Base git ref (default: HEAD) | HEAD |
| head_ref | No | Head git ref (optional) | |
| scan_dirs | No | Optional list of directories to scan (relative to project root unless absolute). Overrides src_dir. | |
| project_root | No | Project root directory (defaults to cwd if omitted) | |
| ignore_patterns | No | Regex patterns for files to ignore (applied to normalized paths). | |
| include_untracked | No | Include untracked files from git |