You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*If you are new to Espresso, try this sample first.*
4
+
5
+
This project uses the Gradle build system. You don't need an IDE to build and execute it but Android Studio is recommended.
6
+
7
+
1. Download the project code, preferably using `git clone`.
8
+
1. Open the Android SDK Manager (*Tools* Menu | *Android*) and make sure you have installed the *Android testing support library Repository* under *Extras*.
9
+
1. In Android Studio, select *File* | *Open...* and point to the `./build.gradle` file.
10
+
1. Check out the relevant code:
11
+
* The application under test is located in `src/main/java`
12
+
* Tests are in `src/androidTest/java`
13
+
1. Create the test configuration with a custom runner: `android.support.test.runner.AndroidJUnitRunner`
14
+
* Open *Run* menu | *Edit Configurations*
15
+
* Add a new *Android Tests* configuration
16
+
* Choose a module
17
+
* Add a *Specific instrumentation runner*: `android.support.test.runner.AndroidJUnitRunner`
18
+
1. Connect a device or start an emulator
19
+
* Turn animations off [link link]
20
+
1. Run the newly created configuration
21
+
22
+
The application will be started on the device/emulator and a series of actions will be performed automatically.
23
+
24
+
If you are using Android Studio, the *Run* window will show the test results.
0 commit comments