Testing
It does not take too long for any programmer to learn the hard and valuable lesson that testing code is as important as coding itself. Ignore that lesson and a QA team worth its salt will be sure to bring you to your knees. Testing all on its own is a topic that deserves a lot of attention. There are countless resources, including books, out there that will sell you on a wide array of testing methodologies and philosophies. Test-driven Development (TDD) is worth researching if you are new to testing.
However, all that is out of the scope of this book. In this chapter, we are more concerned about the testing tooling provided by the Android platform geared toward Wear development, as well as the test APIs that are at your disposal. Let's take a closer look at that in the sections that follow.
The need for testing
The single most compelling reason to test code, in general, is to catch regressions as early as possible in the application development life cycle. With every code change that...