Reputation: 14764
I've just reviewed about 10 Android books, read a bunch of articles and found a couple of frameworks, but still I haven't found any comprehensive way of testing Android applications.
It's too bad that testing appears (if at all) only as a single and short chapter only in some books.
There are:
But none of them has sufficient documentation, tutorials or example. I couldn't able to setup Robotium with Gradle as well to be run either from AS or even command line.
What is the most current way to test Android applications with Android Studio 1.0
and Gradle 1.0.0
? What frameworks and tools do you use? Where do you learn testing recipes for Android?
The only thing I managed to setup is standard android ways for testing applications, however there are only few examples how to do that.
Upvotes: 4
Views: 335
Reputation: 837
Check out Blundell's blog for some good tutorials: here's the one for espresso. Be warned, while I could get Espresso and JUnit tests to work, I haven't managed to get Robolectric to work yet. If anyone has a way to get it to work for projects targetting API 21, I would be keen to know how.
Upvotes: 0
Reputation: 3720
The problem is that, there is no single page, that covers all Android test frameworks. Anyway there are more of them than you listed above.
I don't know much about integrating them with Android Studio as it still is in infancy, however it should be feasible.
Upvotes: 1