# facebook/screenshot-tests-for-android

Generate fast deterministic screenshots during Android instrumentation tests

Repository: https://github.com/facebook/screenshot-tests-for-android
Canonical: https://ross.abutalabs.com/products/screenshot-tests-for-android
Homepage: http://facebook.github.io/screenshot-tests-for-android
Language: Java
License: Apache-2.0
License Family: permissive
Archived: true
Last push: 2026-01-07T18:30:21+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 61, release rhythm 8, longevity 100
- inputs: {"age_days": 4020, "days_push": 238, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1739, forks 219 (observed 2026-08-28T04:05:30.053498+00:00)

## What it is
A Java library and Gradle plugin from Facebook that generates fast, deterministic screenshots of Android views during instrumentation tests by mimicking measure/layout/draw on the test thread. It supports recording and verifying screenshots in CI to catch visual regressions, plus utilities for iterating on views without building the full app.

## Use cases
- catch visual regressions in android app ui in ci
- generate deterministic screenshots during instrumentation tests
- verify layout changes across multiple configurations quickly
- preview how a view renders without building the whole app
- compare screenshots against recorded baselines in continuous integration

## When to choose
- you need pixel-perfect deterministic android screenshot tests without threading or animation flakiness
- you want to catch padding, margin, or color regressions in ci
- you want to iterate on a single view or layout in a real android environment

## When to avoid
- you need a maintained tool - the repository is archived and no longer maintained
- your host tooling runs on windows, which is not supported out of the box
- you rely on python 2.7, which the gradle plugin requires

## Facets
- artifact type: library
- maturity: abandoned
- function: testing, e2e-testing
- domain: mobile-development, testing, android-tools
- platform: python
- tags: screenshot-testing, visual-regression, android-ui, gradle-plugin, archived, android, macos, linux

## Member repositories
- facebook/screenshot-tests-for-android (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:30.053498+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-30T03:30:13.067687+00:00, confidence not recorded.
  - readme: https://github.com/facebook/screenshot-tests-for-android (fetched 2026-08-28T04:05:30.053498+00:00, sha 111a2630bf78)
  - homepage: http://facebook.github.io/screenshot-tests-for-android (fetched 2026-08-29T11:07:33.431202+00:00, sha ceda7b3a90dc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
