2 ms·
Weird, I know we have Robotium and Robolectric working fine in Android Studio at work. Although some versions do require a separate project, most versions are j
by lnanek2 13y ago
Weird, I know we have Robotium and Robolectric working fine in Android Studio at work. Although some versions do require a separate project, most versions are just sub-projects under a main folder with a shared build.gradle now. Not than any of us want to use it. You are just forced to if you want to use the latest features like AARs with Gradle. Eclipse is unfortunately obsolete and incapable of handling the latest stuff, even though we all used it for years and prefer it.
- swanson 13y agoLast 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 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).
- ch0wn 13y agoI'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.
- harpb 13y agoI followed: http://www.peterfriese.de/android-testing-with-robolectric/ 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.