Monday, May 13, 2013

Robolectric 2.0 RC2



Robolectric 2.0 is very nearly finalized! Thanks for all the bug reports over the last week.


Unless we find any showstopper bugs, I'll redeploy this as 2.0 final shortly.

Changes since alpha 3:

  • Bug fixes.
  • Performance improvements.

    Use it!

    If you've been using Robolectric 1.x, see the blog post on migrating to Robolectric 2.0.

    If you're new to Robolectric, just add this to your pom:
    <dependency>
      <groupId>org.robolectric</groupId>
      <artifactId>robolectric</artifactId>
      <version>2.0-rc2</version>
    </dependency>
    Add a @RunWith to your test class and you're ready to go!
    @RunWith(RobolectricTestRunner.class)
    public class MyActivityTest {
      ...
    }

    Help:

    If you find bugs, make an issue on our github project.

    No comments:

    Post a Comment