This is an ui test code sample of Espresso. The app is really a basic/template sample that is of Android Studio generated by selecting "Basic Acticity".
The code is under app/src/androidTest/java/com/example/uitestsample
The code is under app/src/test/java/com/example/uitestsample
To run the test, Android Studio must be installed, and also more than one virtual devices must be run in your computer. Then open UI Test code on Android Studio, then click the 'Play Button' locaeted next to line number.
In short:
- Clone this repository
- Install Android Studio
- Setup Virtual Device and Run it
- Open the UI Test code
- Click 'Play Button'
At No.3 in the list above, CLI can be the alternatice way to run the Test.
$ ./gradlew connectedAndroidTest
$ ./gradlew test
However, this way does not always easy for all of developers. So, to get more information about to run on CLI in detail please refer to this page depending on your interest. https://developer.android.com/studio/test/command-line
./gradlew jacocoDebugTestReport
Report will be stored in ./app/build/reports/
directory.
Apache License Version 2.0