开发者

Is it possible to test Android app using ordinary JRE Junit test?

Is it possible test Android app using ordinary JRE Junit test? I mean by not extending AndroidTestCase and running the tests on a phone or emulator?

I have design my app using MVP as far at is goes with Android and have a Presenter that basical开发者_StackOverflow社区ly knows nothing about the specific View, in this case the specific Activity. So I was hoping to run regular JUnit tests on my Presenter.

Is that possible or must I use AndroidTestCase and run the test on a phone or emulator?


As it turns out it is possible, I used this guide to get it working: https://sites.google.com/site/androiddevtesting/notepadsample

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜