Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.18 KB

android-unit-test.md

File metadata and controls

27 lines (19 loc) · 1.18 KB

(Android) Run unit tests

Description

Run unit tests (for example, testDebugUnitTest).

Instructions

  1. Add an Android Unit Test Step. Input variables you might set:
    • 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.
  2. Add a Deploy to Bitrise.io - Apps, Logs, Artifacts Step that makes the test results available in the Test Reports add-on. The failed tests will be also available under the Test Results tab on the build details page.

bitrise.yml

- android-unit-test@1:
    inputs:
    - project_location: $PROJECT_LOCATION
    - variant: $VARIANT
- deploy-to-bitrise-io@2: {}

Related Links