Skip to content

Robolectric Blog

Robolectric in Google Summer of Code 2024

We have some exciting news to share - Robolectric has been accepted as a host organization for the Google Summer of Code (GSOC) 2024! This will provide an opportunity for students interested in Android development to contribute to one of the most widely used testing frameworks for Android.

Improving android-all Downloading on CI

In recent years, the team has received multiple issues regarding Robolectric's inability to download/resolve the necessary android-all jars when running Robolectric tests in a CI environment. Some examples include:

GSoC 2022 - ConscryptMode

My name is Umesh Singh, and I was an open source contributor through Google Summer of Code this year. Google Summer of Code (GSoC) is a program where external participants can contribute to an open source project over a few months. We learn new computer science concepts, how to work on open source repositories, and create real code contributions to projects!

sharedTest pattern: sharing tests and speeding up development

After Robolectric's 4.0 release, Robolectric supports the AndroidJUnit4 test runner, ActivityScenario, and Espresso for interacting with UI components. As we know, we also can run those tests with an official emulator. This article will show an often overlooked but widely-used pattern called sharedTest to share tests between local and instrumentation tests. This will provide the benefit of fast unit testing while ensuring that tests are high-fidelity by enabling them to be run in an emulator.

A memorial tribute for Jonathan Gerrish

In late August, 2021, we were incredibly saddened to learn of the tragic passing of Jonathan Gerrish and his family while they were hiking near Mariposa, CA. Jonathan was a long-time Robolectric maintainer and active contributor since 2014. He saw incredible potential in Robolectric and championed it within Google, elevating it to an officially supported testing tool that grew to be used by tens of thousands of Android developers.

Robolectric 4.0 Alpha & Jetpack

The Robolectric team is super excited to announce the first alpha release of Robolectric 4.0, as well as some new developments in the world of Robolectric and Android testing in general.

Keepin' It Real With Resources

Up until now, Robolectric has relied on rough approximations of the Android framework's resource handling logic, backwards-engineered to be 'good enough' for many testing purposes.

Robolectric 3.3 and Roadmap

Your Robolectric maintainers are pleased to announce the release of Robolectric 3.3! There's been a bunch of activity recently in Robolectric, and we wanted to give a quick update on our thinking about where the project is going.