[The Java Posse] Android testing follow up

2014-05-16 Thread Rakesh
Hi, I managed to get agreement from my team to try developer testing on a feature. We saw a presentation on Espresso which looked really good and with Google behind it, we thought thats the way to go. Unfortunately, thats when we hit issues. Espresso uses the instrumentation framework which

[The Java Posse] Re: Android testing follow up

2014-05-16 Thread pforhan
Yep, testing is a glaring weak spot in the android SDK. Someone, at its inception, had a vision of testing on device as the centerpiece of the whole thing, and while that's great, it's made life miserable for everyone ever since. Ugh, Stub! exceptions. Robolectric is your friend here. You