Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Android Application Testing

You're reading from   Learning Android Application Testing Improve your Android applications through intensive testing and debugging

Arrow left icon
Product type Paperback
Published in Mar 2015
Publisher
ISBN-13 9781784395339
Length 274 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Table of Contents (11) Chapters Close

Preface 1. Getting Started with Testing FREE CHAPTER 2. Understanding Testing with the Android SDK 3. Baking with Testing Recipes 4. Managing Your Android Testing Environment 5. Discovering Continuous Integration 6. Practicing Test-driven Development 7. Behavior-driven Development 8. Testing and Profiling Performance 9. Alternative Testing Tactics Index

Summary

This chapter has been a little more involved than previous ones, with the sole intention of facing realistic situations and state-of-the-art Android testing.

We started by enabling code coverage through Jacoco, running our tests, and obtaining a detailed code coverage analysis report.

We then used this report to improve our test suite. Writing tests to cover code we were not aware had not been tested. This led us to better tests, and in some cases improved the design of the project under test.

We introduced Robotium, a very useful tool to ease the creation of test cases for our Android applications, and we improved some tests with it.

Then we analyzed one of the hottest topics in Android testing; testing on the development host JVM, optimizing, and reducing considerably the time needed to run the tests. Something that is highly desirable when we are applying Test-driven Development to our process. Within this scope, we analyzed Robolectric and created some tests as demonstrations to...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image