Additional Resources for Testing
This page contains resources for learning more about writing Android tests.
Samples
Android
testing samples
Sunflower
demo, which makes use of the Android testing libraries.
IntentsBasicSample: Basic usage of intended()
and
intending()
.
IdlingResourceSample: Synchronization with background jobs.
Basic
Espresso sample
CustomMatcherSample:
Shows how to extend Espresso to match the hint property of an
EditText
object.
DataAdapterSample:
Showcases the onData()
entry point for Espresso, for lists and
AdapterView
objects.
IntentsAdvancedSample:
Simulates a user fetching a bitmap using the camera.
MultiWindowSample:
Shows how to point Espresso to different windows.
RecyclerViewSample:
RecyclerView
actions for Espresso.
WebBasicSample:
Use Espresso-Web to interact with WebView
objects.
BasicSampleBundled:
Basic sample for Eclipse and other IDEs.
Basic
ActivityScenarioRule sample: Simple usage of
ActivityScenarioRule
.
AndroidJunitRunnerSample:
Showcases test annotations, parameterized tests, and test suite creation.
Basic UIAutomator sample
Codelabs
Android
Testing Codelab
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-12-04 UTC.