From ec19af2aa5c114f9a485af511ccedbbec1b36c59 Mon Sep 17 00:00:00 2001 From: Antonio Zugaldia Date: Wed, 16 Sep 2015 14:03:03 -0400 Subject: [PATCH] import JUnit tests instructions --- android/java/MapboxGLAndroidSDKTestApp/README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/android/java/MapboxGLAndroidSDKTestApp/README.md b/android/java/MapboxGLAndroidSDKTestApp/README.md index 96e2e30b7..646f29c4b 100644 --- a/android/java/MapboxGLAndroidSDKTestApp/README.md +++ b/android/java/MapboxGLAndroidSDKTestApp/README.md @@ -48,8 +48,9 @@ you can just choose "Built-in: Fuzz" in step 2. ### Running pure JUnit tests These tests run on a local JVM on your development machine and they are extremely fast to run -(as compared to Espresso). These tests are located under `src/test/java` and to run them you just -need to right click the corresponding test class or method and select "Run ...". +(as compared to Espresso). These tests are located under `src/test/java`. To run them you switch +to the Unit Tests build variant, then right click the corresponding test class or method +and select "Run ...". You can also have a run configuration: * Click on Run -> Edit Configurations... @@ -59,6 +60,12 @@ You can also have a run configuration: * As folder, choose the following folder: `mapbox-gl-native/android/java/MapboxGLAndroidSDKTestApp/src/test/java` * Click OK to save the new configuration +You can also run the tests from the command line with: + +``` +$ ./gradlew test --continue -p MapboxGLAndroidSDKTestApp +``` + ### Running the UI/Application Exerciser Monkey Similar to the "Built-in: Fuzz" test mentioned above, Android provides