(Android) Run unit tests
Description
Run unit tests (for example, testDebugUnitTest) for an Android app.
Instructions
-
Add an Android Unit Test Step.
Set the input variables:
-
Project Location: Use the default
$BITRISE_SOURCE_DIRor$PROJECT_LOCATION. You can set a specific path but the automatically exposed Environment Variables are usually the best option. -
Variant: Use the
$VARIANTEnviromment Variable, or specify a variant manually. -
Module: Specify one or leave it blank to run tests in all of the modules.
-
-
Add a Deploy to Bitrise.io Step that makes the test results available in the Tests tab.
bitrise.yml
- android-unit-test@1:
inputs:
- project_location: $PROJECT_LOCATION
- variant: $VARIANT
- deploy-to-bitrise-io@2: {}