robolectric/robolectric
Some data may be outdated — see provenance labels.
Android Unit Testing Framework observed · 2026-09-27
Health v2 · maintenance only
88/100
- Activity 96
- Release rhythm 70
- 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-10-21. Adoption (stars, forks) is never an input.
- gap_med: 106.0
- age_days: 5898
- days_rel: 40
- days_push: 25
- n_releases_24m: 7
Adoption not part of the score
6051 stars · 1391 forks observed · 2026-09-27
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-09-27 · 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 | 88 |
For agents
markdown · JSON · MCP: product_card(name="robolectric/robolectric")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem