With Bitrise’s iOS device testing solution, you can run iOS tests on physical devices without having to set up and register your own devices: you just need to use our dedicated Steps and set the device type(s) on which you want to test your app. There are no limits to using the Step, other than your overall build time limit.
Our device testing solution is based on Firebase Test Lab: it uses real, production devices running in a Google data center to test your app. The devices are flashed with updated APIs and have customizable locale settings. You can find the resulting logs, videos and screenshots on Bitrise.
Running device tests for iOS apps ⚓
To run device tests with the Firebase Test Lab solution, you will need to add two Steps to your Workflow:
- Xcode Build for testing for iOS.
- iOS Device Testing.
The Xcode Build for testing for iOS Step performs the
build-for-testing action: it builds the tests defined in your iOS app’s Xcode scheme. The Step exports a .zip file that contains your test directory (by default, it’s
Debug-iphoneos) and the
To use this Step, you will need code signing files for the test app: we recommend using codesigndoc to export the necessary files!
The iOS Device Testing Step takes the path to this .zip file - exported as an Environment Variable - as input to run your tests and export the test results to Bitrise.
Add the Xcode Build for testing for iOS Step to your Workflow.
Note that it should come AFTER the Certificate and profile installer Step.
In the Scheme name input, set the Xcode Scheme you want to use. By default, the value of the input is the
$BITRISE_SCHEMEEnvironment Variable which is stored when your app is created.
By default, the scheme defines which configuration - for example, Debug or Release - will be used. In the Configuration name input, you can define the configuration type manually.
Set a destination option for
xcodebuildin the Device destination input of the Step.
The default value is
generic/platform=ios. For the available values, call
man xcodebuildon your local machine and check the
Destinationssection of the printout.
Add the iOS Device Testing Step to the Workflow.
The Step has to come after the Xcode Build for testing for iOS Step.
In the Test devices input field, specify the devices on which you want to test the app.
Find the list of the available devices here.
Make sure you have the Deploy to Bitrise.io Step in your Workflow, with version 1.4.1 or newer.
With the older versions of the Step, you won’t be able to check your results on the Test Reports page!
Start a build!
If all goes well, you should be able to view your results on the Build page.
Checking the device test results ⚓
Check out the test results of your device tests on the Test Reports page. You can view the results of the tests run on each device, and check the details of each test case. This includes:
- Test cases.
- Files generated.
To view the test results:
- Click the Builds tab of the app and select the build that ran the tests.
- Under the build status, click See more next to the Test reports label.
This takes you to the Test Reports page. Check out our Test Reports guide to find out more about using it to analyze your test results.
Deploy an app to Bitrise to be able to download the .ipa file and install it on devices specified in the app's Development Provisioning Profile. This way, your internal testers...
You can build and deploy your iOS application to a simulator, to show it off in a browser, for example. On Bitrise, we have a dedicated Step to build for...
With Bitrise’s Android virtual device testing solution, you can run UI tests on emulators without having to set up and register your own devices. Our solution is based on Firebase Test...