Android Programming: The Big Nerd Ranch Guide, 5th Edition
by Bryan Sills, Brian Gardner, Kristin Marsicano, Chris Stewart
6 Testing
Up to this point, whenever you have made a change in GeoQuiz, you have been forced to compile and deploy an updated version of your app. After waiting for the updated app to install on your device, you can finally interact with the app and observe the new changes. This is a relatively slow process, even for a small app, and it will only get slower as your app becomes more complex.
Unit testing is the practice of writing and using small programs to verify the standalone behavior of a unit of code within your app. It can speed up the cycle of developing new features and then verifying that they work as expected. And as your app gains more functionality, unit testing can give you more confidence that your existing functionality ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access