Book Image

Android Application Development with Maven

Book Image

Android Application Development with Maven

Overview of this book

Table of Contents (14 chapters)

Summary


This chapter was dedicated to the Android unit testing. We covered the two different ways of testing activities (with and without the usage of emulators/devices), and we saw how to get reports about the code coverage. By now, you should be able to:

  • Understand the difference between unit and integration testing

  • Run unit tests in device/emulator using the Android testing library

  • Run pure JUnit 4 tests using the Robolectric testing framework

  • Configure Maven to generate code coverage reports using JaCoCo and Cobertura

In the next chapter, we will continue our discussion about testing. This time, we will cover tools for integration testing that work well with maven.