Run a unit test ⚓
Unit testing is useful if you want to verify individual code blocks, catch bugs or prevent crashes as early as possible.
This tutorial tells you how to run a unit test against your app and how to generate test reports using your primary workflow.
Luckily, your Android primary workflow already contains the
Android Unit Test and the
Android Lint steps which are responsible for performing unit test on your build.
Generate test reports ⚓
Android Unit Test step generates and exports unit test reports into the
$BITRISE_DEPLOY_DIR folder. Then the
Deploy to Bitrise.io step exports those reports from the
$BITRISE_DEPLOY_DIR folder to the respective build’s
APPS & Artifacts tab on bitrise.io. You can view or download those reports to your local computer.