run_affected
Run only tests impacted by git changes. Analyzes diffs against a base ref to find and execute related test files.
Instructions
Run only tests affected by git changes. Analyzes diff to find related test files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Git ref to diff against (e.g., "main", "HEAD~3"). Defaults to unstaged/staged changes. | |
| timeout | No | Time budget in milliseconds | |
| coverage | No | Enable coverage collection | |
| projectDir | Yes | Absolute path to the project directory |