In this screencast we cover how to set up your Android Studio environment to use Espresso 2.0. We talk about ViewMatchers, ViewActions and ViewAssertions and how to use them. We also demonstrate a simple TDD (Test Driven Development Method) implementation for the first test. At the end of this screencast, you should be able to set up your Android Application with the Espresso 2.0 Testing framework with Gradle and Android Studio.
You will need Android Studio installed in order to perform the same steps.
It's a little bit outdated. ActivityTestRule is in 'test-rules' support repository. Also, it should be in Kotlin.