Android Testing - Getting Started with Espresso 2.0
344 3 44574
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 http://www.caster.io or this YouTube channel: https://www.youtube.com/channel/UCX-K1HK8ejnnQF_GWcMHveg/feed
By anonymous 2017-09-20
You have to update the test "Edit Configuration" and include the AndroidJUnitRunner as the instrumentation runner.
I found the solution in this video: https://youtu.be/TGU0B4qRlHY?t=9m36s
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.
Popular Videos 616
Submit Your Video