Bot releases are visible (Hide)
Robolectric 4.13 is a large collection of improvements. Some major improvements include:
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.
gradle/actions/wrapper-validation
action by @MGaetan89 in https://github.com/robolectric/robolectric/pull/8986
-D
command line option in ""
in the Readme by @MGaetan89 in https://github.com/robolectric/robolectric/pull/8989
@DoNotMock
error message in ClassInstrumentor https://github.com/robolectric/robolectric/pull/9000
compat-target28
integration test to sdkcompat
by @hoisie in https://github.com/robolectric/robolectric/pull/9030
minSdk
to 21 in the testapp
module by @MGaetan89 in https://github.com/robolectric/robolectric/pull/9106
assertThrows()
in ShadowContextImplTest
by @MGaetan89 in https://github.com/robolectric/robolectric/pull/9107
org.robolectric.shadows
https://github.com/robolectric/robolectric/pull/9139
google-java-format
to 1.22.0 by @MGaetan89 in https://github.com/robolectric/robolectric/pull/9201
settings.gradle
by @MGaetan89 in https://github.com/robolectric/robolectric/pull/9200
gradleapp
directory from Robolectric by @hoisie in https://github.com/robolectric/robolectric/pull/9233
integration_tests/androidx_test
and integration_tests/multidex
module by @MGaetan89 in https://github.com/robolectric/robolectric/pull/9263
Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.12.2...robolectric-4.13
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:
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: 7307dc20a438d042b582fb896a2793fd149152eaOther fixes:
BeforeClass
methods: 34bcd2196a29d4079f6ccce3dbf39a1f70edf196Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.12.1...robolectric-4.12.2
Published by hoisie 7 months ago
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
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.
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
Published by hoisie 12 months ago
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
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.
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
Published by brettchabot 12 months ago
This release fixes SDK 34 support
dup()
to ShadowParcelFileDescriptor. by @copybara-service in https://github.com/robolectric/robolectric/pull/8526
Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.11-beta-1...robolectric-4.11-beta-2
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.
Activity#isChangingConfigurations
is incorrectly false during ActivityScenario#recreate
in Robo tests. by @copybara-service in https://github.com/robolectric/robolectric/pull/8087
PendingIntent.isTargetedToPackage()
shadow implementation. by @copybara-service in https://github.com/robolectric/robolectric/pull/8141
@Resetter
by @copybara-service in https://github.com/robolectric/robolectric/pull/8164
isConnected
API to ShadowBluetoothDevice by @copybara-service in https://github.com/robolectric/robolectric/pull/8450
Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.10-alpha-1...robolectric-4.11-beta-1
Published by hoisie over 1 year ago
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
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
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
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.
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
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.
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:
Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.9.1...robolectric-4.9.2
Published by hoisie almost 2 years ago
Robolectric 4.9.1 is a minor release that fixes several issues:
Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.9...robolectric-4.9.1
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.
UiController#loopMainThreadUntilIdle
on registered idling resources being idle. https://github.com/robolectric/robolectric/pull/7148
nCreateTextureLayer
https://github.com/robolectric/robolectric/pull/7166
targetSdk
from AndroidManifest.xml by @Umesh-01 in https://github.com/robolectric/robolectric/pull/7232
ShadowChoreographer
methods https://github.com/robolectric/robolectric/pull/7278
ShadowContextWrapper.grantPermissions()
when sending broadcasts to receivers with permissions. https://github.com/robolectric/robolectric/pull/7463
ShadowUiAutomation#setRotation
https://github.com/robolectric/robolectric/pull/7537
getDeclaredField
helper in more parts of ReflectionHelpers https://github.com/robolectric/robolectric/pull/7544
Truth.assertThat(java.lang.Boolean)
that ignore the result to call isTrue()
on it instead. https://github.com/robolectric/robolectric/pull/7553
idx
and offset
correctly from sparse resource entries https://github.com/robolectric/robolectric/pull/7594
Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.8...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.
Published by hoisie about 2 years ago
This is a minor release that fixes a number of issues, including:
https://github.com/robolectric/robolectric/issues/7413, an issue closing SQLite databases.
https://github.com/robolectric/robolectric/issues/7479, an initialization error in CountDownTimer.
testCompile "org.robolectric:robolectric:4.8.2"
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).
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.
ShadowVibrator#addSupportedPrimitives
to enable in https://github.com/robolectric/robolectric/pull/6907
windowConfiguration
bounds when updating the display metrics in https://github.com/robolectric/robolectric/pull/6922
VibrationAttributes
in ShadowVibrator
and exposes a getter getVibrationAttributesFromLastVibration
to get VibrationAttributes for the last vibration. in https://github.com/robolectric/robolectric/pull/7018
ShadowWindowManagerGlobal#getLastDragClipData
method in https://github.com/robolectric/robolectric/pull/7019
ShadowPausedSystemClock
thread safe in https://github.com/robolectric/robolectric/pull/7083
robolectric.rendernode.enableMatrix
flag in https://github.com/robolectric/robolectric/pull/7099
getTotalSize
, setTotalSize
, getBytesSoFar
and setBytesSoFar
for DownloadManager.Request in ShadowDownloadManager. in https://github.com/robolectric/robolectric/pull/7104
nCreateTextureLayer
to ShadowHardwareRenderer
in https://github.com/robolectric/robolectric/pull/7106
ColorSpace
to ShadowBitmap
in https://github.com/robolectric/robolectric/pull/7134
@Test(expected = ...)
to assertThrows(...)
. in https://github.com/robolectric/robolectric/pull/7143
ShadowCanvas
in https://github.com/robolectric/robolectric/pull/7146
UiController#loopMainThreadUntilIdle
on registered idling resources being idle. in https://github.com/robolectric/robolectric/pull/7148
nCreateTextureLayer
in https://github.com/robolectric/robolectric/pull/7166
targetSdk
from AndroidManifest.xml by @Umesh-01 in https://github.com/robolectric/robolectric/pull/7232
Full Changelog: https://github.com/robolectric/robolectric/compare/robolectric-4.7.3...robolectric-4.8
testCompile "org.robolectric:robolectric:4.8"