Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何提高Android代码的可测试性? #47

Open
vvLavida opened this issue Aug 18, 2016 · 0 comments
Open

如何提高Android代码的可测试性? #47

vvLavida opened this issue Aug 18, 2016 · 0 comments

Comments

@vvLavida
Copy link
Owner

使用MVP架构,对视图逻辑(view层)和业务逻辑(presenter层)进行拆分,就可以对UI、业务代码分别进行测试。UI测试引入Espresso,业务层单元测试引入junit,生成测试mock对象引入mockito,为了支撑mockito引入dexmaker,hamcrest的引入使得测试代码的匹配更接近自然语言,可读性更高,更加灵活。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant