Research Resource Discovery

Android App Development: Unit Testing

Affiliation: UIUC


Type: Streaming Resource

Description: Make sure every part of your Android mobile app works perfectly. Test your application at the unit level using unit testing and the built-in tools in the Android SDK. Learn to write the two basic types of unit tests—local and instrumented—and handle complex conditionals, exceptions, and even user interface testing. James P. White introduces tools from within and outside the SDK to speed up and automate unit testing. White also looks at mock objects, which help test code when real objects are unavailable (for example, a yet-to-be-created class). These simple testing techniques will help you create more stable codebases and deliver better quality apps to your end users.

Quality Level: production