Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Testing and securing android studio applications

You're reading from  Testing and securing android studio applications

Product type Book
Published in Aug 2014
Publisher Packt
ISBN-13 9781783988808
Pages 162 pages
Edition 1st Edition
Languages

Tools for unit testing


As we have seen in Chapter 9, Unit and Functional Tests, unit testing is performed with minimal connection to the system infrastructure and tests the different components in isolation. We will see different tools that allow us to easily perform unit tests on Android applications. They are as follows:

  • Spoon

  • Mockito

  • Android Mock

  • FEST Android

  • Robolectric

Spoon

Spoon is not a new form of unit testing. Instead, it makes use of the existing unit testing instrumentation such as JUnit to run tests on multiple devices. With Spoon, you can test your application on many devices at the same time. When the test is completed, you will receive a summary generated by Spoon with all the information regarding the test performed on the devices. You can also use Spoon for functional testing.

For a device to be considered by Spoon to run tests on, it has to be visible to the Android Debug Bridge (adb) devices. You can even perform the tests on different types of devices at the same time, such...

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 €14.99/month. Cancel anytime}