Summary
In this chapter, we looked at the different types of testing and the frameworks available for implementing these tests. We also looked at the testing environment and how to structure it for each environment, as well as structuring your code into multiple components that can be individually unit-tested.
We analyzed different ways to test code, how we should approach testing, and how, by looking at different test results, we can improve our code. With TDD, we learned that by starting with testing, we can write our code faster and ensure it is less error-prone.
The activity is where all these concepts came together into building a simple Android application, and we can observe how, by adding tests, the development time increases, but this pays off in the long term by eliminating possible bugs that appear when the code is modified.
The frameworks we have studied are some of the most common ones, but there are others that build on top of these and are used by developers...