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
Testing and securing android studio applications

You're reading from   Testing and securing android studio applications Debug and secure your Android applications with Android Studio

Arrow left icon
Product type Paperback
Published in Aug 2014
Publisher Packt
ISBN-13 9781783988808
Length 162 pages
Edition 1st Edition
Arrow right icon
Authors (2):
Arrow left icon
Antonio Hernández Niñirola Antonio Hernández Niñirola
Author Profile Icon Antonio Hernández Niñirola
Antonio Hernández Niñirola
Belén Cruz Zapata Belén Cruz Zapata
Author Profile Icon Belén Cruz Zapata
Belén Cruz Zapata
Arrow right icon
View More author details
Toc

Testing in Android


The security and quality of Android applications are the key factors to its success. Testing helps you discover bugs and errors in your application, measure its accuracy, and also improve security.

Android testing is based on JUnit. JUnit is a framework to write repeatable tests in Java. It evaluates whether the class that is to be tested is working as expected. There are two types of tests to be created in an Android application:

  • Tests that can run on the Java Virtual Machine (JVM): If you want to test standard Java classes that do not call the Android API, you can use plain JUnit tests. The execution of this type of test is faster because it does not require any time for deployment on an Android device, especially when running on an emulator.

  • Tests that require the Android SDK: If you need to evaluate classes that use Android API, tests have to be run on an Android device using the Android JUnit extensions. From now on, we will be using this kind of test since we want...

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