Build the app and the test app:
./gradlew :app:assembleDebug :app:assembleDebugAndroidTest
Run the tests on Marathon Cloud using --mock-location
option that allows to grant mock location permission to the app:
marathon-cloud run android \
--api-key <your_api_key> \
--name mock_location_test \
-a app/build/outputs/apk/debug/app-debug.apk \
-t app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk \
--system-image google_apis \
--mock-location
MockLocationProvider
GeoLocationUITest