autopilot_test
Run Xcode tests and return structured failures with failing test and implementation source context, enabling detection of failing tests before applying fixes and repeating the cycle.
Instructions
Run xcodebuild test and return structured test failures with source context. Each failure includes the failing test method source and the related implementation code. Use this to detect failing tests, then call autopilot_apply_fixes to fix them, and repeat.
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>",
"scheme": "<scheme>"
},
"name": "autopilot_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scheme | Yes | Build scheme name | |
| test_plan | No | ||
| destination | No | ||
| only_testing | No | ||
| project_path | Yes | Absolute path to .xcodeproj or .xcworkspace | |
| configuration | No | Debug |