MCPcopy Index your code
hub / github.com/android/android-test

github.com/android/android-test @androidx-test-1.4.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release androidx-test-1.4.0 ↗ · + Follow
9,282 symbols 32,057 edges 984 files 2,620 documented · 28% 1 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

AndroidX Test Library

The AndroidX Test Library provides an extensive framework for testing Android apps. This library provides a set of APIs that allow you to quickly build and run test code for your apps, including JUnit 4 and functional user interface (UI) tests. You can run tests created using these APIs from the Android Studio IDE or from the command line.

For more details see developers.android.com/testing

Contributing

See CONTRIBUTING.md

Issues

We use the GitHub issue tracker for tracking feature requests and bugs.

Please see the AndroidX Test Discuss mailing list for general questions and discussion, and please direct specific questions to Stack Overflow.

Bazel integration

To depend on this repository in Bazel, add the following snippet to your WORKSPACE file:

ATS_TAG = "<release-tag>"
http_archive(
    name = "android_test_support",
    sha256 = "<sha256 of release>",
    strip_prefix = "android-test-%s" % ATS_TAG,
    urls = ["https://github.com/android/android-test/archive/%s.tar.gz" % ATS_TAG],
)
load("@android_test_support//:repo.bzl", "android_test_repositories")
android_test_repositories()

Extension points exported contracts — how you extend this code

DeviceBroker (Interface)
Provides tests with access to a device to execute on. The device may be physical or emulated depending on the broker in [14 …
tools/device_broker/java/com/google/android/apps/common/testing/broker/DeviceBroker.java
ActivityLifecycleCallback (Interface)
Callback for monitoring activity lifecycle events. These callbacks are invoked on the main thread, so any long operation [6 …
runner/monitor/java/androidx/test/runner/lifecycle/ActivityLifecycleCallback.java
ClassNameFilter (Interface)
A filter for classpath entry paths Patterned after java.io.FileFilter [14 implementers]
runner/android_junit_runner/java/androidx/test/internal/runner/ClassPathScanner.java
IContentProvider (Interface)
Compile time only shim, because Android framework interface is annotated with @hide. [27 implementers]
services/speakeasy/java/androidx/test/services/speakeasy/compilehelp/hidden_api/IContentProvider.java
IdlingResource (Interface)
Represents a resource of an application under test which can cause asynchronous background work to happen during test ex [27 …
espresso/idling_resource/java/androidx/test/espresso/IdlingResource.java
ViewAssertion (Interface)
Responsible for performing assertions on a View element. This is considered part of the test framework public AP [24 implementers]
espresso/core/java/androidx/test/espresso/ViewAssertion.java
ActivityResultFunction (Interface)
Function that returns an ActivityResult, to be called by {@link ResettingStubberImpl#getActivityResultFunctionFo [47 implementers]
espresso/intents/java/androidx/test/espresso/intent/ActivityResultFunction.java
ResultDescriber (Interface)
Converts a result to a String. @param The type of the result. [46 implementers]
espresso/web/java/androidx/test/espresso/web/assertion/WebViewAssertions.java

Core symbols most depended-on inside this repo

Shape

Method 7,669
Class 1,382
Interface 114
Function 63
Enum 54

Languages

Java96%
Python4%
Kotlin1%

Modules by API surface

espresso/core/java/androidx/test/espresso/matcher/ViewMatchers.java231 symbols
runner/android_junit_runner/javatests/androidx/test/internal/runner/TestRequestBuilderTest.java208 symbols
tools/android/emulator/emulated_device.py161 symbols
espresso/core/javatests/androidx/test/espresso/matcher/ViewMatchers2Test.java107 symbols
espresso/core/javatests/androidx/test/espresso/matcher/ViewMatchers1Test.java102 symbols
tools/device_broker/java/com/google/android/apps/common/testing/broker/DeviceBrokerOptions.java87 symbols
runner/android_junit_runner/java/androidx/test/internal/runner/TestRequestBuilder.java86 symbols
runner/rules/java/androidx/test/rule/provider/DelegatingContext.java85 symbols
espresso/core/javatests/androidx/test/espresso/matcher/RemoteViewMatchersTest.java83 symbols
espresso/core/javatests/androidx/test/espresso/matcher/CursorMatchersTest.java71 symbols
runner/rules/javatests/androidx/test/rule/ActivityTestRuleTest.java66 symbols
espresso/web/java/androidx/test/espresso/web/webdriver/DriverAtoms.java65 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add android-test \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page