01 espresso 单元测试
espresso 单元测试
单元测试积累
Espresso:
Espresso有三种重要体系的类,分别是Matchers(匹配器),ViewAction(界面行为),ViewAssertions(界面判断), 其中Matchers是常常是通过匹配条件来需找UI组件或过滤UI, 而ViewAction是来模拟用户操作界面的行为, ViewAssertions对模拟行为操作的View进行变换和结果验证,其三者关系如图所示
官网地址: https://developer.android.com/training/testing/ui-testing/espresso-testing.html
官网说明文档:https://google.github.io/android-testing-support-library/docs/espresso/