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.