Testing user interactions within a single app helps to ensure that users do not encounter unexpected results or have a poor experience when interacting with your app. You should get into the habit of creating user interface (UI) tests if you need to verify that the UI of your app is functioning correctly.
The Espresso testing framework, provided by the Android Testing Support Library, provides APIs for writing UI tests to simulate user interactions within a single target app.
Carlos Fernando Arboleda
CTO y Co-founder Mobile Lab. Experiencia desarrollando aplicaciones en Android. Speaker y organizador del GDG Cali. Mentor en Devhack del curso de Android.
Mas info: https://developer.android.com/training/testing/ui-testing/espresso-testing.html