Run instrumentation (for example, Espresso) or robo/gameloop tests on virtual devices. Our device testing solution. ) is based on Firebase Test Lab. You can find the resulting logs, videos and screenshots on Bitrise.
- Add an Android Build for UI Testing Step. Set the input variables:
- Project Location: Use the default
$BITRISE_SOURCE_DIR
or$PROJECT_LOCATION
. You can set a specific path but the automatically exposed Environment Variables are usually the best option. - Variant: Use the
$VARIANT
Enviromment Variable, or specify a variant manually. - Module: Specify one or leave it blank to run tests in all of the modules.
- Project Location: Use the default
- Add a [BETA] Virtual Device Testing for Android Step. Set the input variables:
- Test type:
instrumentation
(orrobo
orgameloop
) - (Optional) Test devices (default:
NexusLowRes,24,en,portrait
)
- Test type:
- Add a Deploy to Bitrise.io - Apps, Logs, Artifacts Step that makes the test results available in the Test Reports add-on.
- android-build-for-ui-testing@0:
inputs:
- variant: $VARIANT
- module: $MODULE
- virtual-device-testing-for-android@1:
inputs:
- test_type: instrumentation
- deploy-to-bitrise-io@2: {}