# linkedin/test-butler

Reliable Android Testing, at your service

Repository: https://github.com/linkedin/test-butler
Canonical: https://ross.abutalabs.com/products/test-butler
Language: Java
License: Apache-2.0
License Family: permissive
Topics: android, test-butler, android-emulator, testing, android-library, linkedin
Last push: 2026-01-07T23:33:05+00:00

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

## Adoption (not part of the score)
Stars 1044, forks 94 (observed 2026-08-28T04:03:21.243880+00:00)

## What it is
Test Butler is an Android testing library plus companion emulator app that stabilizes the Android emulator for automated UI tests. It disables animations, crash/ANR dialogs, and sleep behaviors, and lets tests toggle WiFi, orientation, locale, location modes, and runtime permissions.

## Use cases
- run espresso tests without emulator animations breaking them
- prevent ANR and crash dialogs from failing android ui tests
- simulate no wifi connectivity during android tests
- change device orientation from test code
- grant runtime permissions programmatically in tests
- set app locale to test localization
- keep emulator cpu and wifi awake during test runs

## When to choose
- you run android instrumentation or espresso tests on emulators in CI
- you need to toggle emulator settings like wifi, orientation, or locale from tests
- flaky emulator behavior like animations or system dialogs is causing test failures

## When to avoid
- you test only on physical devices, since the companion app requires the emulator system keystore
- your tests are pure JVM unit tests with no emulator involvement
- you need a solution actively maintained for the latest android versions

## Facets
- artifact type: library
- maturity: maintenance
- function: testing, e2e-testing
- domain: testing, mobile-development, developer-tools
- platform: jvm, cli
- tags: android-emulator, espresso, ui-testing, test-stability, android-library, android

## Member repositories
- linkedin/test-butler (main) score 50

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:21.243880+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-30T07:02:14.437358+00:00, confidence not recorded.
  - readme: https://github.com/linkedin/test-butler (fetched 2026-08-28T04:03:21.243880+00:00, sha a8fcc7890d13)
- Data as of 2026-08-30T08:39:29.467469+00:00.
