How does it work
- Shadow object
- View and resource loading
Shadow object
Shadow Objects
• @RealObject
• __constructor__
• @Implements
• @Implementation
• Robolectric.bindAllShadowClasses()
Robolectric 介紹文
- Android中的單元測試
- Android Unit Testing with Robolectric
- Android Unit Testing with Robolectric 備份
- DroidconUK: TDD Android with Robolectric
- Unit Testing Android Apps With Robolectric and Eclipse
- Android – Basic testing with unit test, android test and roboguice, robolectric, mockito
- Advanced Android testing with RoboGuice and Robolectric
Robolectric 配置(未試過)
- Android studio下gradle Robolectric單元測試配置
- Robolectric Installation for Unit Testing
- Updated Android Studio + Robolectric + Gradle, getting it all to work
- Robolectric with PowerMock for Android Studio
Robolectric(Youtube)
- Learn How to Unit Test Your Android Application (with Robolectric)
- SF Android Live Code - Android Testing with Robolectric with Colin Miller