Robolectric
lastmod 2018-08-17created 2014-03-048 edits
Running tests on an Android emulator or device is slow! Building, deploying, and launching the app often takes a minute or more. That’s no way to do TDD. There must be a better way.
See also
Favorite site
For AndroidStudio IDE
- Testing with gradle and Robolectric, and developing in android studio 1
- How to set up Android Studio and tests (JUnit, Hamcrest, Robolectric) 2
- Android Testing With Robolectric
- How to set up Android Studio and tests (Robolectric) - 4th revision, for Robolectric testing 3
For Eclipse IDE
- Using Robolectric for Android testing - Tutorial 4
- Steps to configure RoboElectric with Eclipse | Roboelectric | Test Driven Development 5
- Android Unit Testing With Robolectric | Android TDD | Android Unit Test Case 6
- [Recommended] Robolectric Installation for Unit Testing 7
References
-
AndroidStudio_-_Gradle,_Robolectric_Test_Unit.pdf ↩
-
Wannabe_Consecutive_Entrepreneur_-Android_Studio_Test_Setting-_JUnit,_Hamcrest,_Robolectric.pdf ↩
-
Wannabe_Consecutive_Entrepreneur_-AndroidStudio-_Robolectric_Test.pdf ↩
-
Using_Robolectric_for_Android_testing_-_Tutorial.pdf ↩
-
Steps_to_configure_RoboElectric_with_Eclipse_-Roboelectric-_Test_Driven_Development.pdf ↩
-
Android_Unit_Testing_With_Robolectric_-Android_TDD-_Android_Unit_Test_Case.pdf ↩
-
Robolectric_Installation_for_Unit_Testing_·thecodepath_android_guides_Wiki·_GitHub.pdf ↩