From 5c74d202d3e0b603ce842c9e60eecc617a9cdbdd Mon Sep 17 00:00:00 2001 From: Antonio Zugaldia Date: Mon, 14 Sep 2015 17:18:52 -0400 Subject: [PATCH] added info about Monkey --- .../java/MapboxGLAndroidSDKTestApp/README.md | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/android/java/MapboxGLAndroidSDKTestApp/README.md b/android/java/MapboxGLAndroidSDKTestApp/README.md index 87ea2eb13..6748b42c6 100644 --- a/android/java/MapboxGLAndroidSDKTestApp/README.md +++ b/android/java/MapboxGLAndroidSDKTestApp/README.md @@ -2,7 +2,7 @@ ## Testing -### Run Espresso tests on a device +### Running Espresso tests on a device This test project comes with all the required Android Testing Support Library dependencies in the Gradle file. Tests are under the `app/src/androidTest` folder. @@ -22,7 +22,7 @@ To create a new run configuration: You can now run this configuration from the main toolbar dropdown menu. -# Run Espresso tests on AWS Device Farm +### Running Espresso tests on AWS Device Farm On a terminal, within `mapbox-gl-native/android/java`, run the tests (`cC` stands for `connectedCheck`): @@ -42,3 +42,17 @@ Then: If you have no tests for your app, or want to test some random user behaviour, you can just choose "Built-in: Fuzz" in step 2. + +### Running the UI/Application Exerciser Monkey + +Similar to the "Built-in: Fuzz" test mentioned above, Android provides +[Monkey](http://developer.android.com/tools/help/monkey.html), +"a program that runs on your emulator or device and generates pseudo-random streams of user events +such as clicks, touches, or gestures, as well as a number of system-level events." + +To exercise Monkey on the test app, install the package on the device (e.g. via Android Studio) +and then: + +``` +$ adb shell monkey -p com.mapbox.mapboxgl.testapp -v 500 +```