Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Last I checked (October) I could not get the build.gradle to play nicely. Most of the other material online involved using instrumentCompile to trick Android Studio into running your unit tests and a custom runner/plugin: https://github.com/JakeWharton/gradle-android-test-plugin

If you have gotten it working in Android Studio, I'd be very keen to see how (if you are willing to share).



I followed: http://www.peterfriese.de/android-testing-with-robolectric/ I can't get it to run a specific (gives junit 3.8+ required error), but am able to run the whole suit.


I'd also be very interested in learning how to set up Android Studio to run Robolectric. Especially sinceone of the last releases removed the option to mark custom directories as test folders, so tat I now can't even use any Java features in the editor.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: