page.title=Testing
@jd:body
The Android development environment includes an integrated testing framework that helps you
test all aspects of your application.
Fundamentals
To start learning how to use the framework to create tests for your applications, please
read the topic
Testing Fundamentals.
Concepts
-
Testing Tools describes the Eclipse with ADT and command-line tools you use to test
Android applications.
-
What to Test is an overview of the types of testing you should do. It focuses on testing
system-wide aspects of Android that can affect every component in your application.
-
Activity Testing focuses on testing activities. It describes how instrumentation allows
you to control activities outside the normal application lifecycle. It also lists
activity-specific features you should test, and it provides tips for testing Android
user interfaces.
-
Content Provider Testing focuses on testing content providers. It describes the
mock system objects you can use, provides tips for designing providers so that they
can be tested, and lists provider-specific features you should test.
-
Service Testing focuses on testing services. It also lists service-specific features
you should test.
Procedures
Tutorials
-
The
Hello, Testing tutorial introduces basic testing concepts and procedures.
-
For a more advanced tutorial, try
Activity Testing,
which guides you through a more complex testing scenario.
Samples
-
Note Pad Provider
Test is a test package for the
Note Pad sample
application. It provides a simple example of unit testing
a {@link android.content.ContentProvider}.
-
The Alarm Service Test
is a test package for the Alarm
sample application. It provides a simple example of unit
testing a {@link android.app.Service}.