Skip to main content

(iOS) Run tests on a simulator

Description

Run unit or UI tests of an iOS app on a simulator.

Instructions

  1. Add an Xcode Test for iOS Step. Set the input variables:

    • Project path: The default value is $BITRISE_PROJECT_PATH and in most cases you don't have to change it.

    • Scheme: The default value is $BITRISE_SCHEME, this variable stores the scheme that you set when adding the app on Bitrise. You can specify a different scheme if you want but it must be a shared scheme.

    • Device destination specifier: (default: platform=iOS Simulator,name=iPhone 8 Plus,OS=latest).

  2. Add a Deploy to Bitrise.io - Apps, Logs, Artifacts Step that makes the test results available in the Test Reports add-on.

bitrise.yml

- xcode-test@4: {}
- deploy-to-bitrise-io@2: {}