Run unit or UI tests for given Xcode project or workspace
xcode-project run-tests [-h] [--log-stream STREAM] [--no-color] [--version] [-s] [-v]
[--project XCODE_PROJECT_PATH]
[--workspace XCODE_WORKSPACE_PATH]
[--target TARGET_NAME]
[--config CONFIGURATION_NAME]
[--scheme SCHEME_NAME]
[--clean]
[--disable-coverage]
[--graceful-exit]
[--max-concurrent-devices MAX_CONCURRENT_DEVICES]
[--max-concurrent-simulators MAX_CONCURRENT_SIMULATORS]
[-d TEST_DEVICES]
[--test-only TEST_ONLY]
[--sdk TEST_SDK]
[--omit-sdk]
[-o OUTPUT_DIRECTORY]
[-e OUTPUT_EXTENSION]
[--test-flags TEST_FLAGS]
[--test-xcargs TEST_XCARGS]
[--disable-xcpretty]
[--xcpretty-options OPTIONS]
Path to Xcode project (*.xcodeproj)
Path to Xcode workspace (*.xcworkspace)
Name of the Xcode Target
Name of the Xcode build configuration
Name of the Xcode Scheme
Whether to clean the project before building it
Turn code coverage off when testing
In case of failed tests or unsuccessful test run exit the program with status code 0
The maximum number of device destinations to test on concurrently.
The maximum number of simulator destinations to test on concurrently.
Test destination description. Either a UDID value of the device, or device name and runtime combination. If runtime is not specified, the latest available runtime for given device name will be chosen. For example "iOS 14.0 iPhone SE (2nd generation)", "iPad Pro (9.7-inch)", "tvOS 14.1 Apple TV 4K (at 1080p)", "Apple TV 4K". Default test destination will be chosen if no devices are specified and test SDK is not targeting macOS. For macOS tests no destination are specified. (See xcode-project default-test-destination
for more information about default destination). Multiple arguments
Limit test run to execute only specified tests, and exclude all other tests
Name of the SDK that should be used for building the application for testing. Default: iphonesimulator
Do not pass -sdk argument to xcodebuild test
command
Directory where the Junit XML results will be saved. Default: build/ios/test
Extension for the created Junit XML file. For example xml
or junit
. Default: xml
Pass additional command line options to xcodebuild for the test phase. For example -derivedDataPath=$HOME/myDerivedData -quiet
.
Pass additional arguments to xcodebuild for the test phase. For example COMPILER_INDEX_STORE_ENABLE=NO OTHER_LDFLAGS="-ObjC -lstdc++
.
Do not use XCPretty formatter to process log output
Command line options for xcpretty formatter. For example "--no-color" or "--simple --no-utf". Default: --color
show this help message and exit
Log output stream. Default stderr
Do not use ANSI colors to format terminal output
Show tool version and exit
Disable log output for commands
Enable verbose logging for commands