get_affected_tests
Identifies tests affected by code changes via git diff, returning a sorted list of fully qualified test names to minimize test execution.
Instructions
Get tests affected by code changes. Automatically runs git diff (including uncommitted changes) and analyzes which tests need to be run. Returns a sorted list of test FQNs (fully qualified names). If the diff contains changes outside the analyzed Kotlin sources (build scripts, resources), a note is appended — consider running the full test suite for those changes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_path": "<project_path>"
},
"name": "get_affected_tests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base_branch | No | Git branch to compare against (default: origin/main) | |
| project_path | Yes | Absolute path to the Kotlin project root directory |