-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add build variant to run ui/application monkey exerciser #15109
Conversation
81b53e8
to
ef80a5e
Compare
- 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` |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
ef80a5e
to
81feb95
Compare
.../MapboxGLAndroidSDKTestApp/src/main/java/com/mapbox/mapboxsdk/testapp/MapboxApplication.java
Outdated
Show resolved
Hide resolved
81feb95
to
1541a47
Compare
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 |
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. |
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).