9. Unit Tests and Integration Tests with JUnit, Mockito, and Espresso
Overview
In this chapter, you will learn about testing on the Android platform and how to create unit tests, integration tests, and UI tests. You will see how to create each of these types of tests, analyze how it runs, and work with frameworks such as JUnit, Mockito, Robolectric, and Espresso. You will also learn about test-driven development, a software development practice that prioritizes tests over implementation. By the end of this chapter, you will be able to combine your new testing skills to work on a realistic project.
Introduction
In previous chapters, you learned about how to load background data and display it in the UI and how to set up API calls to retrieve ...
Get How to Build Android Apps with Kotlin now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.