0

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 1

1

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.

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks Durdu, just one question your source code is not in local system then what would be the approach?
Not sure what exactly you need but seems like you should look into remote access CI, CD - teamviewer/ Fastlane / Jenkins/ piplines /gitlab

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.