Summary
In this chapter, we first had a look at the benefits of testing and classified tests based on different aspects. Afterward, we took a shot at testing our Compose-based UI and learned how to write UI unit tests by leveraging the power of the semantics modifiers.
Finally, we learned how to write regular – non-UI – unit tests in order to validate the core functionality of our application. In this part, we learned how to test our coroutine-based code and how important it is to inject the CoroutineDispatcher
objects.
In the next chapter, we're steering away from the architectural side of Android development, and we will be incorporating data pagination with the help of yet another interesting library called Jetpack Paging.