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
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Android Application Development with Maven

You're reading from   Android Application Development with Maven Learn how to use and configure Maven to support all phases of the development of an Android application

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

Grabbing screenshots with Spoon


A typical Android application consists of several activities with many components and various flows of user interaction. Instrumentation tests should be able to cover if not all, most of the activity flows; so, hundreds of instrumentation tests might run every time the corresponding Maven goal is invoked. It is also very common during the development cycles that some tests might get broken due to some recent changes or new Android SDKs or new incompatible devices. Maven can report on the errors found during a test run, but in some cases the information provided is not enough. A picture worth a thousand words, so wouldn't be much better if we could have a report of all screenshots taken during integration test execution?

Spoon (http://square.github.io/spoon/) comes to the rescue and allows us to do two things that are not offered through the Android testing framework. First while running the tests we can grab screenshots and second, after finishing the test...

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