If a DevOps engineer wants to invoke your iOS app unit tests from a shell script(App is in production), how can we do that? Objective is, a devops script should be able to trigger your unit tests and know if your tests pass or fail.
1 Answer
Example:
xcodebuild \
-workspace MyAwesomeApp.xcworkspace \
-scheme MyAwesomeApp \
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 6,OS=8.1' \
test
Further info here.
The result of something like:
xcodebuild -workspace WORKSPACE -scheme SCHEME -sdk iphonesimulator -destination DESTINATION test
Should equal 0 if everything went well.