O'Reilly logo

Mastering Android Application Development by Antonio Pachón Ruiz

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

Chapter 11. Debugging and Testing on Android

In this chapter, you will learn how to debug in Android, an essential practice to save time in finding and fixing problems while developing our application.

We will learn how to create automated tests that can test the click of a button or the outcome of a single method. This is a set of tests that you can run in Android Studio to ensure that every time you develop a new feature, you don't break any of the existent ones.

You will also learn how to use Robolectric for unit tests and Espresso for integration tests.

At the end of the chapter, we will discuss how to test the UI with millions of random clicks using Monkey, how to record sequences of clicks through the app, and how to configure tests based on ...

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