UI Tests with Espresso — Android Studio set up for beginners
You have your Android project. You use Android Studio. You want to easily write tests for your UI.
Read this post for detailed instruction https://medium.com/p/c476d3b5ba45/
UPDATE: The original post is out of date, the commands have been updated
gradle clean
gradle connectedCheck build