Open mdumrauf opened 10 years ago
Looks like it is a known issue: https://groups.google.com/forum/#!searchin/adt-dev/android$20studio$20unit$20test/adt-dev/lgDdhQkjq_4/G7OkZtZZVYIJ
@mdumrauf Do you have any updates? I curriently added this the test as a external gradle task. How did you intergrate it?
@rekire I managed to run it as an external gradle task too, but that makes it non-debuggable. I ended up running the task manually in a terminal and looking at the stacktrace in the html report. Sucks, really, but it's something.
Following your approach, I could run the Test Sample. However when I started writing actual tests for my app I found some issues:
Looks like the Robolectric team has made some progress on it https://github.com/robolectric/deckard-gradle
Your approach is really good. Great work! It gives me the possibility of having unit tests with Robolectric that run on the CI Server.
Now I am trying to run them within the IDE. This is the error: