-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Running Robolectric SNAPSHOT
Michael Hoisie edited this page Aug 13, 2020
·
14 revisions
- Clone the robolectric repository:
git clone https://github.com/robolectric/robolectric
- Check out the branch/commit that you want to run
- Run
./gradlew install
in the Robolectric root directory. It is also faster to runSKIP_JAVADOC=true ./gradlew install
. - Add
mavenLocal()
to your project's root project build.gradle:allprojects { repositories { mavenCentral() google() jcenter() mavenLocal() } }
- Update your project to use the SNAPSHOT version of Roblectric (4.4-SNAPSHOT at time of writing).
dependencies { ... testImplementation 'org.robolectric:robolectric:4.4-SNAPSHOT' ... }
- Run your project's tests