Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 602 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 602 Bytes

Mock Location example

How to run

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

Main anchors

  1. MockLocationProvider
  2. GeoLocationUITest