Run Android Tests with Marathon Cloud
Marathon Cloud revolutionizes your app testing experience. The platform provides infinite virtual devices and will automatically shard, sort, distribute, and retry your tests, allowing all tests to be completed in a maximum of 15 minutes.
This article will guide you on how to conduct your initial tests using Marathon Cloud.
Build app and test APKs
Before running tests, build both your application APK and test APK using debug variants:
- App APK:
app/build/outputs/apk/debug/app-debug.apk - Test APK:
app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk
Run tests with UI
The easiest way to initiate your tests is to utilize the UI Dashboard. Click on the “Start your first test run” button, upload your App APK and Test APK, then click “Next: Schedule”.
Watching results
After scheduling your test run, monitor progress and results in real-time through the dashboard.
Run tests with CLI
We recommend using the marathon-cloud-cli to run your tests via CLI, as it includes all possible parameters for customizing your test runs.
marathon-cloud run android \
--api-key generated_api_key \
--application app-debug.apk \
--test-application app-debug-androidTest.apk
The full documentation is available on the CLI README.