robolectric/robolectric
Android Unit Testing Framework observed · 2026-08-28
Health v2 · maintenance only
83/100
- Activity 99
- Release rhythm 54
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 64
- age_days: 5850
- days_rel: 225
- days_push: 7
- n_releases_24m: 6
Adoption not part of the score
6041 stars · 1389 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Robolectric is the industry-standard unit testing framework for Android that runs tests in a simulated Android environment inside a JVM, avoiding slow and flaky emulators. It supports 14 Android API levels (23 through 36) and integrates with JUnit and Gradle-based Android builds.
Use cases
- run android unit tests fast without an emulator
- test android activities and ui behavior in the jvm
- speed up tdd for android apps
- simulate android framework behavior in tests
- test across multiple android api levels
- isolate android tests with controlled framework state
When to choose
- you want fast, reliable android unit tests without emulator overhead
- you need to test android components like activities and views in a jvm sandbox
- you practice tdd on an android project and need second-level test cycles
- you need to run tests against many android api versions
When to avoid
- you need true instrumentation on real devices or hardware sensors
- you need end-to-end integration tests with real android runtime behavior
- your tests depend on actual emulator-only features like real gpu rendering
Facets
framework · maturity active
testing e2e-testing mocking mobile-development testing android-tools jvm cli android unit-testing jvm emulator-free test-framework gradle
3 sources
- readme: https://github.com/robolectric/robolectric · fetched 2026-08-28 · f4a39a6af0da
- homepage: https://robolectric.org · fetched 2026-08-29 · 761dee90c822
- site_page: https://robolectric.org/getting-started · fetched 2026-08-29 · 509d38b60b88
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| robolectric/robolectric | main | 83 |
For agents
markdown · JSON · MCP: product_card(name="robolectric/robolectric")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem