Robolectric Versions Save

Android Unit Testing Framework

robolectric-4.12.1

1 month ago

Robolectric 4.12.1 is a minor release that addressed two issues:

  1. Fixed a NoClassDefFoundError when invoking ShadowLog APIs outside of a Robolectric environment. See https://github.com/robolectric/robolectric/issues/8957 for details.
  2. Reduced the amount of spurious log noise that may be generated when attempting to delete temp directories in Windows. See https://github.com/android/nowinandroid/issues/1242 for details.

Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.12...robolectric-4.12.1

robolectric-4.12

1 month ago

Robolectric 4.12 adds support for the native runtime (native SQLite and graphics modes) on Windows x86_64. It also contains a large number of bug fixes and performance improvements.

Note Robolectric 4.12 uses an updated version of the preinstrumented jars (version i6), so if you have infrastructure that caches or customizes the location of the preinstrumented jars, they will need to be updated.

What's Changed

New Contributors

Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.11.1...robolectric-4.12

robolectric-4.11.1

6 months ago

Robolectric 4.11.1 is a minor release that addressed three issues:

  1. Fixed a NoClassDefFoundError when using PixelCopy with compileSdkVersion < 34. See https://github.com/robolectric/robolectric/issues/8577 for details.
  2. Fixed LocaleManager.setApplicationLocales(LocaleList locales) in Android U. See https://github.com/robolectric/robolectric/issues/8580 for details.
  3. Fixed AttributeSetBuilder when referencing sparse resource table entries by name. See https://github.com/robolectric/robolectric/issues/8578 for details.

Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.11...robolectric-4.11.1

robolectric-4.11

6 months ago

Robolectric 4.11 adds support for Android SDK 34 (U). It also contains many bug fixes, performance improvements, and Shadow API enhancements. Robolectric 4.11 removes support for Android SDKs 18 and below. If you need to continue testing on Android SDK levels 18 and below, continue to use Robolectric 4.10.3.

Note that running tests on SDK 34 requires JDK 17.

What's Changed

Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.10.3...robolectric-4.11

New Contributors

robolectric-4.11-beta-2

6 months ago

NOTE: Robolectric 4.11-beta-2 is an outdated preview release; please use 4.11 or later instead.

robolectric-4.11-beta-1

7 months ago

NOTE: Robolectric 4.11-beta-1 is an outdated preview release; please use 4.11 or later instead.

robolectric-4.10.3

1 year ago

Robolectric 4.10.3 is a minor release that addresses two issues:

  1. Fixes https://github.com/robolectric/robolectric/issues/8187, which was a performance regression that was introduced by 87803687f3c6556c3d012ffaa07695d71c3eecd9. This performance regression only occurred if tests did not release transient HandlerThreads at the end of each test. It is still recommended to clean up any HandlerThreads to avoid leaking threads. Thanks @brettchabot for the fix (83110398959107637e2653d49835d5d25db31a89).
  2. Adds additional logging to help diagnose https://github.com/robolectric/robolectric/issues/8205 ( f1e7b43651456e3cb22bc86d48291d60cef64d18), which is a SHA-512 mismatch when fetching android-all Jar files during runtime.

Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.10.2...robolectric-4.10.3

robolectric-4.10.2

1 year ago

Robolectric 4.10.2 is a minor release that fixes an issue related to re-instrumenting classes that have already been instrumented with Jacoco (1c22a484c39711d4f7270585130bb15990f3cc85).

Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.10.1...robolectric-4.10.2

robolectric-4.10.1

1 year ago

Robolectric 4.10.1 is a minor release that fixes several issues:

Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.10...robolectric-4.10.1

robolectric-4.10

1 year ago

Robolectric 4.10 adds support for native Android graphics. It is currently disabled by default and can be enabled using @GraphicsMode(NATIVE). When native graphics is enabled, interactions with Android graphics classes use real native Android graphics code and are much higher fidelity.

Behavior changes

In Robolectric 4.10, ReflectionHelpers.setStaticField no longer removes the final keyword from static fields. This is because removing final using reflection stops working in JDK 18 due to https://openjdk.java.net/jeps/416. To remove final from static fields, consider using some instrumentation-based approach, such as mockito-inline.

What's Changed

New Contributors

Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.9.2...robolectric-4.10-alpha-1