Reading This Manual
Copying all content from this file and pasting it at https://jbt.github.io/markdown-editor/ will not display images and gif animations since they are stored locally within the repository. It is strongly recommended to read this document inside Atom text editor using Ctrl + Shift + M to display the rendered preview.
Configure VSTS to use Espresso for UI tests.
1. Add a Gradle task
- Go to the Build and Release -> Build -> All Definitions -> Gated Build -> Edit.
- Click on Add Task.
- Search for Gradle and click Add.
2. Configure the task
- In the Display Name field, type in gradlew connectedAndroidTest.
- In the Tasks field, type in connectedAndroidTest.
- Click Save
Now, when the Gated Build definition is run, VSTS will perform the UI tests.
These UI tests have been implemented using Espresso and the Green Coffee library and are located in the app/src/androidTest directory.
Author: Nahom Abi