Reputation: 31787
After 3 days struggling to make JUnit and Robolectric to work with Android Studio I finall did it, but there is one important step I have to make everytime I open the IDE.
I have to go to app.iml and change "false" to "true" in "ALLOW_USER_CONFIGURATION". After this the testing works, but it's really annoying to make this change everytime I open the IDE.
Is there anyway to keep this change saved? I've looked for this option in the UI but I couldn't find nothing similar.
Any advice?
Thanks.
Upvotes: 0
Views: 339
Reputation: 5151
This used to be an issue, but should no longer be a problem with the new Android Studio support for unit tests.
Checkout the instruction and setup in this sample project: https://github.com/robolectric/deckard-gradle
Upvotes: 1