test_macos_ws
Execute and parse macOS workspace tests using xcodebuild, specifying workspace path, scheme, and optional build configuration for streamlined testing workflows.
Instructions
Runs tests for a macOS workspace using xcodebuild test and parses xcresult output.
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": {
"workspacePath": "<workspacePath>",
"scheme": "<scheme>"
},
"name": "test_macos_ws"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| configuration | No | Build configuration (Debug, Release, etc.) | |
| derivedDataPath | No | Path where build products and other derived data will go | |
| extraArgs | No | Additional xcodebuild arguments | |
| preferXcodebuild | No | If true, prefers xcodebuild over the experimental incremental build system, useful for when incremental build system fails. | |
| scheme | Yes | The scheme to use (Required) | |
| workspacePath | Yes | Path to the .xcworkspace file (Required) |