Last active
April 16, 2024 16:29
-
-
Save mccaffers/285e267e03025f5112eb320ca69072f9 to your computer and use it in GitHub Desktop.
Unit test iOS from the command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Wipe the simulators | |
xcrun simctl erase all | |
# Run the unit tests | |
xcodebuild -scheme TestProject \ | |
-destination 'platform=iOS Simulator,name=iPhone 15,OS=latest' \ | |
-resultBundlePath TestResult/ \ | |
-enableCodeCoverage YES \ | |
clean build test \ | |
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment