test_device_ws
Executes tests on Apple devices (iPhone, iPad, Apple Watch, Apple TV, Apple Vision Pro) using xcodebuild, parses xcresult output, and requires workspacePath, scheme, and deviceId for integration.
Instructions
Runs tests for an Apple workspace on a physical device (iPhone, iPad, Apple Watch, Apple TV, Apple Vision Pro) using xcodebuild test and parses xcresult output. IMPORTANT: Requires workspacePath, scheme, and deviceId.
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 | |
deviceId | Yes | UDID of the device (obtained from list_devices) | |
extraArgs | No | Additional xcodebuild arguments | |
platform | No | Target platform (defaults to iOS) | |
preferXcodebuild | No | If true, prefers xcodebuild over the experimental incremental build system | |
scheme | Yes | The scheme to use (Required) | |
workspacePath | Yes | Path to the .xcworkspace file (Required) |