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 these recordings with MonkeyTalk.
Logs and the debug mode
Testing
Unit tests with Robolectric
Integration tests with Espresso
UI Testing
Random clicks with MonkeyRunner
Recording clicks with MonkeyTalk
Continuous Integration