Skip to content

Robolectric 2.4

Compare
Choose a tag to compare
@ry4n1m3 ry4n1m3 released this 07 Nov 18:55
· 9447 commits to master since this release

Robolectric 2.4

Fellow Android testing enthusiasts, Robolectric 2.4 has been released!

Features

  • Compatibility with JDK 7 & 8.
  • Better style and theme resolution. Robolectric now has more realistic resource resolution for style references in themes. This increases compatibility with appcompat-v7.
  • Add additional configuration options to the @Config annotation including, application class name, path to res directory, paths to library res directories.
  • Improved real android implementation jar management. Robolectric will fingerprint and cache the android-all jars downloaded at runtime so they are downloaded fewer times.
  • Allow for running tests offline (controllable via robolectric.offline and robolectric.dependency.dir system properties).

Contributor Features

  • Robolectric's shadowOf methods are now created using an annotation processor. In addition, the processor also performs validation on the use of @Implementation, @Implements, @Resetter, and @RealObject annotations.

Bug Fixes

  • ShadowNotification and ShadowNotification.Builder enhancements and bug fixes.
  • Tons of small improvements and bug fixes.

Upgrade Notes

  • Removed dependency on fest-assert, fest-reflect, and fest-util.