Espresso

Working with Recycler Views in Espresso Tests

In this short post, I will introduce you to a few utility methods that might be useful while working with RecyclerView in Espresso Tests. Introduction In this post, I am assuming that you are already using a RecyclerView in your app.

How To Improve Coverage for your Android App Using Mockito and Espresso — Part 2

In the first part of this article we got an introduction about various frameworks available to us for writing tests for an Android app. We also saw some best practices that could be followed to write more testable code.

How To Improve Coverage for your Android App Using Mockito and Espresso — Part 1

In app development, a variety of use cases and interactions come up as one iterates the code. The app might need to fetch data from a server, interact with the device’s sensors, access local storage, or render complex user interfaces.

Fix Kotlin and new ActivityTestRule : The @Rule must be public

I wrote a simple activity in Koltin which takes a user name as input and simply displays it in the TextView. Here’s how the activity looks like. And the code for the activity is,