Run tests created with Repeato Studio as part of your Bitrise workflow.
Add this step to your workflow in the Bitrise Workflow Editor. You can also run this step directly with Bitrise CLI.
This step takes care of checking the system requirements as well as installing and starting the headless Repeato CLI testrunner. After running the tests, it sets the environment variables which can be used in consecutive steps.
- Add the Repeato Test Runner Step to your Workflow as one of the Steps in your Workflow.
- Make sure your test workspace is checked out.
- Set the Workspace Path to point to the repeato workspace directory.
- Set the Batch Id. The batch ID of the test batch you want to execute.
- Set the License Key.
Please make sure AVD or IOS emulator is configured properly. Further your Android/iOS app build must be installed on the emulator before running the test batch. We recommend to run the tests on the same device / emulator you originally used for creating them. This way you will get the most stability and performance.
For iOS Simulator there isn't any step, that starts the simulator, as the xcodebuild test command for iOS Testing step boot’s the simulator by default.
| Key | Description | Flags | Default |
|---|---|---|---|
repeato_cli_version |
Set the repeato CLI version compatible to your workspace tests. | required | latest |
workspace_path |
Repeato test runner need workspace path for setting up the workspace before executing batch. | required | $BITRISE_SOURCE_DIR |
batch_id |
Set batch id for the tests execution. | required | 0 |
license_key |
Set license key for the tests execution. | required | none |
log_level |
Set log level. | required | INFO |
| Environment Variable | Description |
|---|---|
REPEATO_REPORT |
Repeato Batch Report Zip File |
REPEATO_JUNIT_REPORT |
Repeato JUnit XML File |
The emulator needs some time to boot up. The earlier you place the step in your workflow, the more tasks, such as cloning or caching, you can complete in your workflow before the emulator starts working.
We recommend that you also add Wait for Android emulator Step (in case of android) to your workflow as it acts as a shield preventing the AVD manager to kick in too early. Make sure you add the Wait for Android emulator Step BEFORE the Repeato Test Runner Step so our step can use AVD Manager.
Here is the our demo pipeline on Bitrise, which we've setup for our step testing:
- AVD Manager
- Git Clone Repository
- Flutter Install for building our flutter-based app.
- Bitrise Cache pull
- Bitrise Cache push
- Wait For Androind Emulator
- Script - As our next final Repeato step needs fully ready & configured emulator, we are using commands for building the APK (
flutter build apk --split-per-abi) and sending to emulator usingadb install(make sure you send/install the apk compatible to your emulator settingsx86_64 or arm64etc...). You might have to configure different step for making the build and sending to device (depending upon your APP). Also make sure before the next step workspace-tests are cloned (if they are in separate repository) - SeeUseful linkssection below. - Repeato Test Runner Step
- Deploy to Bitrise.io - Artifacts The Repeato step copies the
batch-reportszip file and JUnit XML file into the bitrise upload directory($BITRISE_DEPLOY_DIR). You can use this step to upload the reports into the test artifacts section. You could also use FTP Upload or a Deploy to S3 step for uploading reports. - Export test results to Test Reports add-on This Step is to export the results to the Test Reports add-on. The Step creates the required test-info.json file and deploys the test results in the correct directory for export.
We welcome pull requests and issues against this repository.
For pull requests, work on your changes in a forked repository and use the Bitrise CLI to run step tests locally.