开发者

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

开发者 https://www.devze.com 2023-03-03 10:14 出处:网络
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?

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

精彩评论

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