Back to the Future: Compose Previewing Your XML-Based Views!Jetpack Compose has transformed Android UI development with its declarative approach, making UI code simpler to write. One of its standout features is Compose Previews, which allows developers to instantly view how Composable functions will look on a...Dec 17, 2024 · 6 min readsergiosastre.hashnode.dev
Efficient Testing with Robolectric & Roborazzi Across Many UI States, Devices and ConfigurationsRobolectric is a popular UI testing tool from Google that enables running UI tests without a physical device or emulator. It supports most androidx.test APIs, like Espresso, ActivityScenario & FragmentScenario as well as ComposeTestRule. Robolectric ...Nov 9, 2023 · 10 min readsergiosastre.hashnode.dev
Write Once, Test Everywhere: Cross-Library Screenshot Testing with AndroidUiTestingUtils 2.0.0As observed in the previous blog post of this series, screenshot tests have a lot in common regardless of the library they're written with, namely: Setting the device configuration (e.g. Locale, Ui Mode, Font scale...) Setting the Subject Under Tes...PSep 15, 2023 · 9 min readsergiosastre.hashnode.dev
A World Beyond Libraries: Cross-Library screenshot tests on AndroidThe state of the art of screenshot testing for Android Screenshot testing is trending in Android. Many new libraries have come up, and even Google announced at I/O 20231 that they're working on a new tool for this based on Composable Previews powered...1PAug 23, 2023 · 6 min readsergiosastre.hashnode.dev
Top-notch stateful testing in AndroidBroadly speaking, in an app, state is any value that can change over time. All Android apps display state to the user, e.g. an enabled/disabled button, the text displayed in a View, etc. We expect users to modify the state by performing actions throu...1PAug 31, 2022 · 12 min readsergiosastre.hashnode.dev