Bot releases are visible (Hide)
Published by brettchabot over 7 years ago
NOTE: Robolectric 3.4-rc4 is a outdated release candidate; please use 3.4-rc5 instead.
Published by hoisie over 7 years ago
NOTE: Robolectric 3.4-rc3 is a outdated release candidate; please use 3.4-rc4 instead.
Published by hoisie over 7 years ago
NOTE: Robolectric 3.4-rc2 is a outdated release candidate; please use 3.4-rc3 instead.
Published by xian over 7 years ago
NOTE: Robolectric 3.4-rc1 is a outdated release candidate; please use 3.4-rc2 instead.
Published by jongerrish over 7 years ago
Robolectric 3.3.2 provides support for Android O Developer Preview 1, improves startup time, and resolves a licensing issue.
PackageManager
simulation: addPackage()
should not create sessions [issues #2984 and #2950].NoClassDefFoundError: javax/microedition/khronos/opengles/GL
[issues #2960 and #1932].Use Robolectric:
testCompile "org.robolectric:robolectric:3.3.2"
Find more details here. Report issues here. Enjoy!
Published by xian over 7 years ago
Robolectric 3.3.1 fixes a few bugs; details below.
Html.fromHtml()
/System.arraycopy()
bug [issue #2959].testCompile "org.robolectric:robolectric:3.3.1"
Find more details here. Report issues here. Enjoy!
Published by xian over 7 years ago
Robolectric 3.3 fixes some long-standing bugs (notably PowerMock and Mockito integration) and adds some significant new features. Details below.
<array>
resources are now supported [issue #2064].Context#getExternalFilesDirs
now supported [issue #2818].android.opengl.Matrix
[issue #2893].PackageManager
: [issue #2913].
checkSignatures()
getDefaultActivityIcon()
getInstalledApplications()
getInstallerPackageName()
and setInstallerPackageName()
getPackageSizeInfo()
(Use addPackage()
to control behavior.)getPermissionInfo()
(Use manifest or addPermissionInfo()
to control behavior.)resolveContentProvider()
AccountManager
: [issue #2906].
AccountManagerFuture
will now post their work to the specified Handler
, so it will be deferred or executed immediately depending on the state of its Scheduler
.View.getGlobalVisibleRect()
now uses the framework implementation unless setGlobalVisibleRect()
has been called.PackageManager
's behavior is moving from a subclass to a shadow. See the Migration Guide [issue #2887]RuntimeEnvironment.getPackageManager()
. Use Android APIs instead.ShadowConfiguration
. Use Configuration
directly instead.ShadowView#getQualifiers()
. Use Robolectric.getQualifiers()
instead.*Controller.withIntent()
and .attach()
[issue #2938].ShadowLocation
. Note that Location.equals()
is no longer shadowed with special equality rules. [issue #2932]ShadowNotification.getProgressBar()
, ShadowDrawable.reset()
, ShadowContentResolver.registerProvider()
, ShadowContentResolver.getContentObserver()
, ShadowImageView.getImageResourceId()
, and ShadowImageView.getImageBitmap()
[issue #2932].ShadowIntentFilter
.RoboAttributeSet
and Attribute
class. Use Robolectric.buildAttributeSet()
instead.MultiApiRobolectricTestRunner
[issue #2924].View.getWindowId()
to behave more like Android [issue #2888].BitmapRegionDecoder
[issue #2926].PackageMAnager.queryIntentContentProviders()
[issue #2927].testCompile "org.robolectric:robolectric:3.3"
Find more details here.
Published by xian over 7 years ago
RobolectricTestRunner
now supports running tests against multiple SDKs. See Configuring Robolectric for more details.Matrix
is now more fully implemented.shadowOf(matrix).getDescription()
or shadowOf(matrix).getPostOperations()
etc. instead.Bitmap
s now cause the size of the Bitmap
to change accordingly.<item type="drawable"/>
are now supported.LocationManager.requestLocationUpdates()
will only receive one notification.Parcelable.readException()
, writeInterfaceToken()
and enforceInterface()
are now implemented.drawable-hdpi
) can now be accessed using Resources.openRawResource()
.BitmapRegionDecoder
is now implemented; bitmap width and height are correctly detected.AssetManager.getThemeValue()
now honors the value of the resolveRefs
argument, and correctly handles style references to attributes in another package.ShadowIcon
provides accessors for hidden Icon
internals.JobScheduler.cancel()
and Looper.quitSafely()
are now implemented.Canvas.drawBitmap()
with destination RectF
is now implemented.IntentFilter
now uses all-framework code. Previously, equals()
and hashCode()
had a partial shadow implementation, but now they are unimplemented.RoboCursor
are now implemented.XmlPullParser.getIdAttributeResourceValue()
now resolves references.NotificationManager.getActiveNotifications()
is now implemented.UserManager.isUserUnlocked()
.ManifestFactory.identify()
won't be called with manifest = "--default"
any more.@Implements(minSdk/maxSdk)
or @Implementation(minSdk/maxSdk)
to restrict shadow classes and methods to the given Android SDK levels.ShadowIntentFilter
has been deprecated and will be removed in the next major release.RobolectricTestRunner
you'll probably need to make a few changes. See Migration Guide for details.RoboCursor
, be sure to call setColumnNames()
on it if you care about what getColumnCount()
will return later.java.util.ServiceConfigurationError: org.robolectric.internal.ShadowProvider: Provider org.robolectric.Shadows not a subtype
[issue #2737].Thanks to the many contributors to this release!
testCompile "org.robolectric:robolectric:3.2"
Find more details here.
Published by xian almost 8 years ago
M
(getResourceAsStream
is broken) [issue #2773].robolectric.properties
file is not loaded [issue #2843].ShadowLocation
has been deprecated and will be removed in a future major release.testCompile "org.robolectric:robolectric:3.2.2"
Find more details here.
Published by xian almost 8 years ago
@InjectMocks
broken [issue #2442].RoboCursor.getColumnCount()
now returns the number of columns in the result data (as before), unless you explicitly call setColumnCount()
[issue #2830].testCompile "org.robolectric:robolectric:3.2.1"
Find more details here.
Published by xian almost 8 years ago
NOTE: Robolectric 3.2-rc1 is a outdated release candidate; please use 3.2 instead.
Published by xian almost 8 years ago
This release fixes an issue that prevented running tests for projects without an explicit dependency on org.robolectric:shadows-core
. If version 3.1.3 was working for you, there'll be no changes in 3.1.4.
Published by xian almost 8 years ago
Fixed a performance regression.
Published by xian almost 8 years ago
NullPointerException
when attempting to load non-existent resource (now correctly throws ResourceNotFoundException
).Published by xian almost 8 years ago
PackageManager
is more fully implemented; e.g. you can now setPackagesForUid()
.ContentProvider
s should be created using Robolectric.buildContentProvider()
, which simulates how the framework creates them (and calls onCreate()
automatically).RoboMenuItem
s should be constructed with a context.RobolectricTestRunner
has been changed to make it easier to customize manifest loading, while retaining caching. If you have a custom test runner, you should override getManifestFactory()
instead of getAppManifest()
.robolectric.logging.enabled
system property to "true"
).Published by erd over 8 years ago
Published by erd over 9 years ago
After a long wait, Robolectric 3.0 is now available.
See https://github.com/robolectric/robolectric/wiki/2.4-to-3.0-Upgrade-Guide
Published by erd over 9 years ago
Published by ry4n1m3 almost 10 years ago
Fellow Android testing enthusiasts, Robolectric 2.4 has been released!
@Config
annotation including, application class name, path to res
directory, paths to library res
directories.@Implementation
, @Implements
, @Resetter
, and @RealObject
annotations.Published by erd over 10 years ago
We're happy to announce that Robolectric 2.3 has been released!