xcode_test
Run unit and UI tests for a specific Xcode scheme and destination. Define test scope by selecting targets or skipping classes, and set a custom timeout to control execution duration.
Instructions
Run unit and UI tests for the specified scheme and destination
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": {
"scheme": "<scheme>",
"destination": "<destination>"
},
"name": "xcode_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scheme | Yes | Build scheme name | |
| testPlan | No | Test plan name | |
| destination | Yes | Test destination (e.g., "platform=iOS Simulator,name=iPhone 16") | |
| onlyTesting | No | Run only these test targets/classes/methods | |
| projectPath | No | When omitted, xcodebuild runs in the MCP server process's working directory (usually not the project directory); passing projectPath explicitly is recommended | |
| skipTesting | No | Skip these test targets/classes/methods | |
| timeoutSeconds | No | Command timeout in seconds (default: 600) |