# android/testing-samples

A collection of samples demonstrating different frameworks and techniques for automated testing

Repository: https://github.com/android/testing-samples
Canonical: https://ross.abutalabs.com/products/testing-samples
Language: Java
License: Apache-2.0
License Family: permissive
Topics: sample
Last push: 2025-07-18T16:19:23+00:00

## Health v2 (maintenance only)
Score: 47/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 32, release rhythm 35, longevity 100
- inputs: {"age_days": 4344, "days_push": 411, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 9291, forks 3634 (observed 2026-08-28T04:10:30.339606+00:00)

## What it is
A collection of sample projects from Google demonstrating automated testing frameworks and techniques on Android, including Espresso, UiAutomator, and AndroidJUnitRunner. Each sample illustrates a specific testing pattern such as intents, idling resources, RecyclerViews, and WebView interaction.

## Use cases
- learn how to write Espresso UI tests for Android
- see examples of UiAutomator test automation
- understand how to test Android intents and idling resources
- find sample code for testing RecyclerViews and AdapterViews
- learn parameterized tests and test suites with AndroidJUnitRunner
- see how to capture screenshots in Android tests
- learn how to test WebViews with Espresso-web

## When to choose
- you are learning Android automated testing and want official, runnable examples
- you need reference implementations of Espresso or UiAutomator patterns
- you want up-to-date samples maintained by Google

## When to avoid
- you need a testing library or framework to add to your project rather than example code
- you are testing non-Android applications
- you need comprehensive documentation instead of code samples

## Facets
- artifact type: learning-resource
- maturity: active
- function: testing, e2e-testing
- domain: testing, mobile-development, android-tools, tutorials
- platform: jvm
- tags: espresso, uiautomator, android-junit-runner, sample-code, google-samples, android

## Member repositories
- android/testing-samples (main) score 47

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:30.339606+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:22:32.780550+00:00, confidence not recorded.
  - readme: https://github.com/android/testing-samples (fetched 2026-08-28T04:10:30.339606+00:00, sha ba4a2b8011cd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
