Deploying and viewing test results
View your test results in one place after a CI build. All tests will be available on the build page, even if you have multiple testing Steps in your Workflows. Our goal is to make sure you have accessible and actionable test results on Bitrise, leading to faster time to recover from test failures and a better overall developer experience.
Deploying test results
Deploy your test results on the build page with minimal configuration. The requirements depend on your setup:
-
Using the official Bitrise testing Steps to run tests
-
Using other Steps to run tests
Deploying results from the official Bitrise testing Steps
The supported testing Steps are the following:
-
Android Unit Test: Running Android unit tests.
-
Android Instrumented Test: Running instrumented tests for Android apps.
-
Xcode Test for iOS: Running unit and UI tests for iOS apps.
-
iOS Device Testing: Device testing for iOS.
-
Virtual Device Testing for Android: Device testing for Android.
-
Flutter Test: Testing Flutter apps.
If you use any of these Steps, make sure you have the Deploy to Bitrise.io Step in your Workflow. Bitrise will automatically deploy your test results to the build page.
Attachments and flaky tests
If your tests generate attachments or you want Bitrise to show flaky tests, the Deploy to Bitrise.io Step must be of version 2.19.1 or newer.
Deploying results from other Steps
If you run your tests using other Steps (for example, you can use Script Steps for a fully custom testing solution), you need some additional configuration.
-
Add the Step running your tests to your Workflow.
-
Add the Export test results to the Test reports add-on Step to your Workflow.
-
Configure the Step: Using the Export test results to the Test reports add-on Step.
-
Make sure you have the Deploy to Bitrise.io Step in your Workflow.
Attachments and flaky tests
If your tests generate attachments or you want Bitrise to show flaky tests, the Deploy to Bitrise.io Step must be of version 2.19.1 or newer.
Viewing test results
Rich HTML reporting
If you use rich HTML test reports, you can still find those on the Artifacts tab.
To view your results, open the build page and select the Tests tab. Your tests are sorted into different tabs based on their status:
-
Failed
-
Passed
-
Skipped
-
Error
-
Flaky
By default, Bitrise shows the list of failed tests. You can view test run details within each of these categories.
Click any test to check the details: the duration of the test, the output, and any attachments that the test generated.
You can view flaky tests on the Flaky tab. Flaky tests are tests that sometimes fail and sometimes succeed without any changes in the code. If a test fails and then succeeds on an automatic retry, Bitrise marks the test as flaky and you can view it on the Flaky tab. It also displays the details and attachments for each retry of the test.
