Top AI Repos โ open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Make JVM Android integration test visible ๐ค๐ธ
| Date | Stars |
|---|---|
| 2026-07-24 | 984 |
| 2026-07-25 | 984 |
| 2026-07-28 | 984 |
| 2026-07-30 | 984 |
| 2026-08-06 | 984 |
Today
โ stars today
This week
โ stars this week
This month
โ stars this month
Momentum
35.0
growth rate 0.00%/day
<!-- Generated by ./gradlew generateReadme. Do not edit this file. --> <!-- topic_top --> <!-- Generated by docs/topics/top.md. Do not edit this file. --> # Roborazzi **Make JVM Android Integration Test Visible** ## Roborazzi now supports [Robolectric Native Graphics (RNG)](https://github.com/robolectric/robolectric/releases/tag/robolectric-4.10) and enables screenshot testing.๐ฃ ## Why Choose Roborazzi? ### Why is screenshot testing important? Screenshot testing is key to validate your app's appearance and functionality. It efficiently detects visual issues and tests the app as users would use it, making it easier to spot problems. It's quicker than writing many assert statements, ensuring your app looks right and behaves correctly. ### What are JVM tests and why test with JVM instead of on Android? JVM tests, also known as local tests, are placed in the test/ directory and are run on a developer's PC or CI environment. On the other hand, device tests, also known as Instrumentation tests, are written in the androidTest/ directory and are run on real devices or emulators. Device testing can result in frequent failures due to the device environment, leading to false negatives. These failures are often hard to reproduce, making them tough to resolve. ### Paparazzi and Roborazzi: A Comparison Paparazzi is a great tool for visualizing displays within the JVM. However, it's incompatible with Robolectric, which also mocks the Android framework. Roborazzi fills this gap. It integrates with Robolectric, allowing tests to run with Hilt and interact with components. Essentially, Roborazzi enhances Paparazzi's capabilities, providing a more efficient and reliable testing process by capturing screenshots with Robolectric. **Leveraging Roborazzi in Test Architecture: An Example** <img src="https://github.com/takahirom/roborazzi/assets/1386930/937a96a4-f637-4029-87e1-c1bb94abc8ae" width="320" /> **Integrating Roborazzi into the Architecture: An Example from DroidKaigi 2023 App** In the DroidKaigi 2023 app, Roborazzi was introduced from the early stages of development as part of the architectural design. This integration allowed the team to verify changes throughout the development process. The specific architectural decisions and how they were implemented can be found [README](https://github.com/DroidKaigi/conference-app-2023#screenshot-testing-with-robolectric-native-graphics-rng-and-roborazzi). ## Using Roborazzi documentation with AI coding agents Roborazzi ships its documentation as an installable [agent skill](https://skills.sh/). Running the following command installs the docs into your AI coding agent (Claude Code, Cursor, Codex, [Android Studio Agent Mode](https://developer.android.com/studio/gemini/skills), Antigravity, Gemini CLI, etc.), so the agent can look up Roborazzi setup and usage while working on your project: ```bash npx skills add takahirom/roborazzi ``` <!-- end --> <!-- topic_try_it_out --> <!-- Generated by docs/topics/try_it_out.md. Do not edit this file. --> # Try it out Available on Maven Central. ## Add Robolectric This is an example of adding Robolectric to your project: https://github.com/takahirom/roborazzi-usage-examples/compare/b697...5c12 This library is dependent on Robolectric. Please see below to add Robolectric. https://robolectric.org/getting-started/ ## Add Roborazzi This is an example of adding Roborazzi to your project: https://github.com/takahirom/roborazzi-usage-examples/commit/3a02 To take screenshots, please use Robolectric 4.10 alpha 1 or later and please add `@GraphicsMode(GraphicsMode.Mode.NATIVE)` to your test class. ```kotlin @GraphicsMode(GraphicsMode.Mode.NATIVE) ``` <!-- end --> <!-- topic_build_setup --> <!-- Generated by docs/topics/build_setup.md. Do not edit this file. --> # Build setup Roborazzi is available on maven central. This plugin simply creates Gradle tasks record, verify, compare and passes the configuration to the test. **build.gradle.kts*
Excerpt of 75,984 characters
Read on GitHubWould you bet a product on this? Bounded 0โ100 and slow moving.
matched fp:484360006bb0e280, topic:testing