Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Add build variant to run ui/application monkey exerciser #15109

Closed
wants to merge 1 commit into from

Conversation

tobrun
Copy link
Member

@tobrun tobrun commented Jul 12, 2019

Replaces #15018, this PR adds a new build variant for running monkey tests. This qa build variant enables testing a debug build but with having a couple components disabled that intervene with the ui/application monkey exerciser (eg. leakcanary).

@tobrun tobrun added the Android Mapbox Maps SDK for Android label Jul 12, 2019
@tobrun tobrun requested a review from LukasPaczos July 12, 2019 11:30
@tobrun tobrun self-assigned this Jul 12, 2019
platform/android/MapboxGLAndroidSDK/build.gradle Outdated Show resolved Hide resolved
platform/android/tests/docs/EXERCISER_TESTS.md Outdated Show resolved Hide resolved
- each app will support a configuration to pin it
- run an monkey exerciser with a commands as:
- `adb shell monkey -p com.mapbox.mapboxsdk.testapp.monkey -v --pct-nav 10 --pct-syskeys 2 --pct-anyevent 2 --pct-touch 44 --pct-motion 40 --pct-trackball 2 --monitor-native-crashes 20000`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Follow up request - could we include the adb command in the gradle script to be executed after the app is installed? Something like finalizer might do the trick. This is not a priority though.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

like introducing a gradle task specific for running monkey tests?

Copy link
Member

@LukasPaczos LukasPaczos Jul 19, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For example installQa.finalizedBy runMonkey where runMonkey is an exec block. This would start the monkey test straight after installing the apk, like an instrumentation test

@tobrun
Copy link
Member Author

tobrun commented Jul 26, 2019

For example installQa.finalizedBy runMonkey where runMonkey is an exec block. This would start the monkey test straight after installing the apk, like an instrumentation test

The issue with that setup is that it doesn't allow to do screen pinning. Noticed this whille experimenting with a task that depends on installMonkey. Leaning towards exposing this as separate task without any dependencies on other tasks.

@stale stale bot added the archived Archived because of inactivity label Sep 24, 2019
@stale
Copy link

stale bot commented Sep 24, 2019

This pull request has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

@stale stale bot closed this Sep 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android archived Archived because of inactivity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants