(iOS) Run tests on a physical device
Description
Run unit or UI tests on a physical device. Our device testing solution is based on Firebase Test Lab. You can find the resulting logs, videos and screenshots on Bitrise.
Prerequisites
-
The source code is cloned and the dependencies (for example, Cocoapods, Carthage) are installed.
-
You have code signing set up. See iOS code signing for more details.
Instructions
-
Add an Xcode Build for testing for iOS Step.
-
Add a [BETA] iOS Device Testing Step and setup code signing.
-
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-build-for-test@1: inputs: - automatic_code_signing: api_key - virtual-device-testing-for-ios@1: {} - deploy-to-bitrise-io@2: {}