Robolectric Blog

  • GSoC 2022 - ConscryptMode

    Sep 6, 2022 • Umesh Singh

    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

    Oct 6, 2021 • utzcoz

    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

    Sep 13, 2021 • Michael Hoisie and Brett Chabot

    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.


  • Improving Robolectric's Looper simulation

    Jun 4, 2019 • Brett Chabot and Jonathan Gerrish

    TL;DR: We’d love your feedback on improvements we’ve made to make Robolectric’s Looper behavior more realistic. Try it out today by annotating your tests with @LooperMode(PAUSED) and let us know your experience!


  • Robolectric 4.0 Released!

    Oct 25, 2018 • Jonathan Gerrish, Brett Chabot, and Christian Williams

    Robolectric 4.0 is released! Here’s what’s new!


  • Robolectric 4.0 Alpha & Jetpack

    May 9, 2018 • Jonathan Gerrish, Brett Chabot, and Christian Williams

    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

    Nov 13, 2017 • Christian Williams

    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

    Mar 2, 2017 • Christian Williams & Jonathan Gerrish

    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.


  • Hermetic Builds with Robolectric

    Mar 1, 2017 • Christian Williams

    Robolectric needs access to multiple Android SDK jars in order to perform its magic, which means it needs special configuration beyond just setting up dependencies in your build. By default, it tries to download Android SDK jars from Maven Central.


Robolectric
  • Home
  • Setup
    • Getting Started
    • Writing Your First Test
  • User Guide
    • AndroidX Test
    • Configuring Robolectric
    • Device Configuration
    • Using Qualified Resources
    • Using Add-On Modules
    • Best Practices
  • Customizing
    • Build System Integration
    • Customizing the Test Runner
  • Contributing
    • Building Robolectric
    • Contributor Guidelines
    • Shadows
  • Resources
    • GitHub
    • Release Notes
    • Migration Guide
    • Javadoc: 3.8 | 4.0 | 4.1 | 4.2 | 4.3 | 4.4 | 4.5 | 4.6 | 4.7 | 4.8 | 4.9
    • Issues

Recent Posts

GSoC 2022 - ConscryptMode

Sep 6, 2022

My name is Umesh Singh and I was an...

sharedTest pattern: sharing tests and speeding up development

Oct 6, 2021

After Robolectric’s 4.0 release, Robolectric supports...

A memorial tribute for Jonathan Gerrish

Sep 13, 2021

In late August, 2021, we were incredibly saddened to learn...

  • More…

Chrome Extension

See Robolectric documentation inline with Android Developer Documentation.

Contact

  • GitHub Project
  • robolectric@googlegroups.com
  • @Robolectric

©2010-2017. All rights reserved.
Design: HTML5 UP.