Android Unit Testing Framework
Robolectric 4.12.1 is a minor release that addressed two issues:
Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.12...robolectric-4.12.1
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.
SafetyCenterManager
throw on certain arguments. https://github.com/robolectric/robolectric/pull/8729
SubscriptionInfo
list to ShadowSubscriptionManager
https://github.com/robolectric/robolectric/pull/8740
looseSignature
from some shadow classes by @utzcoz in https://github.com/robolectric/robolectric/pull/8762
Truth8.assertThat
https://github.com/robolectric/robolectric/pull/8785
gradle/actions/setup-gradle
v3 by @MGaetan89 in https://github.com/robolectric/robolectric/pull/8793
Truth8.assertThat
to equivalent usages of Truth.assertThat
. https://github.com/robolectric/robolectric/pull/8802
:plugins:accessibility-deprecated
module from settings.gradle
by @MGaetan89 in https://github.com/robolectric/robolectric/pull/8822
PackageManager.getReceiverInfo
and PackageManager.getServiceInfo
by @MGaetan89 in https://github.com/robolectric/robolectric/pull/8800
VERSION_CODES
checks by @MGaetan89 in https://github.com/robolectric/robolectric/pull/8805
android.util.Rational
by @MGaetan89 in https://github.com/robolectric/robolectric/pull/8818
ShadowDisplay
by @MGaetan89 in https://github.com/robolectric/robolectric/pull/8840
memfd_create
in Robolectric. https://github.com/robolectric/robolectric/pull/8881
integration_tests/room/build.gradle
by @MGaetan89 in https://github.com/robolectric/robolectric/pull/8892
AndroidManifest
by @MGaetan89 in https://github.com/robolectric/robolectric/pull/8908
revokePermission()
to ShadowContextHubClient
. https://github.com/robolectric/robolectric/pull/8914
AndroidManifest.xml
files by @MGaetan89 in https://github.com/robolectric/robolectric/pull/8909
RobolectricTestRunner.getConfig(Method)
by @MGaetan89 in https://github.com/robolectric/robolectric/pull/8915
Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.11.1...robolectric-4.12
Robolectric 4.11.1 is a minor release that addressed three issues:
LocaleManager.setApplicationLocales(LocaleList locales)
in Android U. See https://github.com/robolectric/robolectric/issues/8580 for details.Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.11...robolectric-4.11.1
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.
Activity#isChangingConfigurations
is incorrectly false during ActivityScenario#recreate
in Robo tests. https://github.com/robolectric/robolectric/pull/8087
PendingIntent.isTargetedToPackage()
shadow implementation. https://github.com/robolectric/robolectric/pull/8141
@Resetter
https://github.com/robolectric/robolectric/pull/8164
isConnected
API to ShadowBluetoothDevice https://github.com/robolectric/robolectric/pull/8450
dup()
to ShadowParcelFileDescriptor. https://github.com/robolectric/robolectric/pull/8526
Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.10.3...robolectric-4.11
NOTE: Robolectric 4.11-beta-2 is an outdated preview release; please use 4.11 or later instead.
NOTE: Robolectric 4.11-beta-1 is an outdated preview release; please use 4.11 or later instead.
Robolectric 4.10.3 is a minor release that addresses two issues:
Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.10.2...robolectric-4.10.3
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 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 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.
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.
ResourcesManager
configuration when applying qualifiers https://github.com/robolectric/robolectric/pull/7697
Pattern
as the same if the pattern and flags are the same https://github.com/robolectric/robolectric/pull/7776
Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.9.2...robolectric-4.10-alpha-1