O'Reilly logo

Android Application Development with Maven by Patroklos Papapetrou, Jonathan LALOU

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required