test_device_proj
Execute tests for Apple projects on physical devices using xcodebuild, parse xcresult output, and specify projectPath, scheme, and deviceId for accurate results.
Instructions
Runs tests for an Apple project on a physical device (iPhone, iPad, Apple Watch, Apple TV, Apple Vision Pro) using xcodebuild test and parses xcresult output. IMPORTANT: Requires projectPath, scheme, and deviceId.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
configuration | No | Build configuration (Debug, Release) | |
derivedDataPath | No | Path to derived data directory | |
deviceId | Yes | UDID of the device (obtained from list_devices) | |
extraArgs | No | Additional arguments to pass to xcodebuild | |
platform | No | Target platform (defaults to iOS) | |
preferXcodebuild | No | Prefer xcodebuild over faster alternatives | |
projectPath | Yes | Path to the .xcodeproj file | |
scheme | Yes | The scheme to test |