Android Testing - Getting Started with Espresso 2.0

By: Donn Felker

344   3   44574

Uploaded on 02/20/2015

In this video we cover how to set up your Android Studio environment to use Espresso 2.0. We talk about matchers, assertions 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 Testing framework.

For more videos see or this YouTube channel:

Comments (2):

By anonymous    2017-09-20

You have to update the test "Edit Configuration" and include the AndroidJUnitRunner as the instrumentation runner.

enter image description here

I found the solution in this video:


Adding what @loeschg suggest: Make sure you check the logcat logs to ensure something isn't causing issues (crash) before the test is even run. Bad code in the @BeforeClass block could resulted in the "Empty Test Suite" message in Android Studio despite having properly set the test runner.

Original Thread

Submit Your Video

If you have some great dev videos to share, please fill out this form.