robolectric

Android Unit Testing Framework

OTHER License

Stars
5.8K
Committers
672

Bot releases are visible (Hide)

robolectric - Robolectric 4.13 Latest Release

Published by hoisie 3 months ago

Robolectric 4.13 is a large collection of improvements. Some major improvements include:

  • Better support for HW rendering in Robolectric Native Graphics (RNG)
    • HW rendering is now supported all the way down to Android P.
    • Increased compatibility with Compose's graphics layer.

Note while some of these PRs below are related to Android V support, Android V is currently not supported in Robolectric 4.13. As soon as it is supported, we will make a 4.14 release.

What's Changed

New Contributors

Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.12.2...robolectric-4.13

robolectric - Robolectric 4.12.2

Published by hoisie 5 months ago

Robolectric 4.12.2 is a minor release that fixes several issues, primarily related to HW rendering in native graphics.

HW rendering fixes:

  • The system property robolectric.screenshot.hwrdr.native was renamed torobolectric.pixelCopyRenderMode. In order to use HW rendering with PixelCopy, you must set the robolectric.pixelCopyRenderMode=hardware system property: 7307dc20a438d042b582fb896a2793fd149152ea
  • Fixed an issue with rendering alpha transparency: 7307dc20a438d042b582fb896a2793fd149152ea
  • Fixed an issue using HW rendering on Activities that are not present in Manifests: #8982, 251087870f065ca44a3d6098d9864af89806ba19
  • Fixed an issue with View drawing cache preventing rendering: 30dc20355c3cedbe29aec0225a77111e2a745461
  • Fixed an issue with HW rendering on Mac: 1ae1478ccd0d9bcbc9d654ded977e1ac359ae11e

Other fixes:

  • Fixed shadowOf compilation issues for older SDK levels.
  • Fixed error reporting BeforeClass methods: 34bcd2196a29d4079f6ccce3dbf39a1f70edf196

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

robolectric - Robolectric 4.12.1

Published by hoisie 7 months 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 - Robolectric 4.12

Published by hoisie 7 months 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.

What's Changed

New Contributors

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

robolectric - Robolectric 4.11.1

Published by hoisie 12 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 - Robolectric 4.11

Published by hoisie 12 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 - Robolectric 4.11-beta-2

Published by brettchabot 12 months ago

This release fixes SDK 34 support

What's Changed

Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.11-beta-1...robolectric-4.11-beta-2

robolectric - Robolectric 4.11-beta-1

Published by brettchabot about 1 year ago

Robolectric 4.11-beta-1 adds support for Android SDK 34 (U) and removes support for Android SDKs 18 and below.

Note that running tests on SDK 34 requires JDK 17.

What's Changed

New Contributors

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

robolectric - Robolectric 4.10.3

Published by hoisie over 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 - Robolectric 4.10.2

Published by hoisie over 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 - Robolectric 4.10.1

Published by hoisie over 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 - Robolectric 4.10

Published by hoisie over 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

robolectric - Robolectric 4.10 Alpha 1

Published by hoisie over 1 year ago

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

robolectric - Robolectric 4.9.2

Published by hoisie almost 2 years ago

Robolectric 4.9.2 is a minor release that primarily fixes https://github.com/robolectric/robolectric/issues/7879, which was an issue using native SQLite with older Linux machines.

It also includes:

  • A fix for ShadowSpeechRecognizer in SDK <= 28 (0df34bf0cb5423afb64d7f4340c95e741ba26aa6, thanks @utzcoz)
  • Some fixes for instrumenting Jacoco-instrumented classes (7534d628fd69caab623b1ed31bf2096fd3c914db and 4e6047d88f7e8d9c83b13842a0d584d7eccd068a). Note there are still known issues with running Robolectric instrumentation on Jacoco-instrumented classes which should hopefully be fixed in 4.10.

Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.9.1...robolectric-4.9.2

robolectric - Robolectric 4.9.1

Published by hoisie almost 2 years ago

Robolectric 4.9.1 is a minor release that fixes several issues:

  • Fixes sdk levels in ShadowAppOpsManager (50e2cfa4294c5dcfb7127f51f355a366f947c89a, thanks @paulsowden)
  • Fixes an issue loading the native runtime on concurrent threads (0b4e996c27b85f05f7f52f75bc9d5109be7ef767)
  • Fixes some uses of LineBreaker and StaticLayout in Compose (ed2d7d3d600972090de29bcf9ad37d65a4d7ef47, thanks @samliu000)
  • Added proxy settings for fetching artifacts (bed3ca5a4ea314f730a9d58331b0099ca4c0abeb, thanks @sebastienrussell)
  • Avoid referring to Android S TelephonyCallback (d43ae9ad7b74512dbf89518247769ca5c2c4128c, thanks @styluo)
  • Fix data race in ShadowPausedLooper (cb231c8c133b6f2ed4e46148d1a4f551fdd52dd2)
  • Add shadow for LocaleManager#getSystemLocales (24d49f41227c35e0e3ce8564e404a39481c312e6, thanks @utzcoz)
  • Use uninterruptibly acquire for ResTable's lock (a221f6829110fd40b124527bde5317123f1737d9, thanks @utzcoz)
  • Update androidx.test dependencies to latest stable releases (0bdf89b884ac7c50c0e4d7a2b2fff848d795bf16, thanks @utzcoz)
  • Support zip files where EOCD's offset to central dir is -1 (9b36bc6b013db9e9eef5c509b2471cc8b0a7395a)

Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.9...robolectric-4.9.1

robolectric - Robolectric 4.9

Published by hoisie about 2 years ago

Robolectric 4.9 adds support for Android T (API level 33).

This release removes shadows supportv4 module fully.

It also installs the Conscrypt as the primary Security provider. See http://robolectric.org/blog/2022/09/06/Umesh-GSoC-on-ConscryptMode/ for details.

4.9 also turns on NATIVE sqlite mode by default for Mac and Linux. Windows will continue to use the LEGACY SQLite mode.

What's Changed

New Contributors

Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.8...robolectric-4.9-alpha-1

robolectric - Robolectric 4.9 Alpha 1

Published by hoisie about 2 years ago

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

robolectric - Robolectric 4.8.2

Published by hoisie about 2 years ago

This is a minor release that fixes a number of issues, including:

Use Robolectric 4.8.2:

testCompile "org.robolectric:robolectric:4.8.2"
robolectric - Robolectric 4.8.1

Published by hoisie over 2 years ago

This is a minor release that fixes #7286, a NoClassDefError that can occur. Thanks for @utzcoz for the fix (#7284).

robolectric - Robolectric 4.8

Published by JuliaSullivanGoogle over 2 years ago

Robolectric 4.8 adds support for Android S V2 (API level 32). It also contains many bug fixes and API enhancements.

What's Changed

New Contributors

Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.7.3...robolectric-4.8

Use Robolectric:

testCompile "org.robolectric:robolectric:4.8"