如何将 Espresso 2(用于测试)与扩展应用程序(android.app.Application)一起使用?

问题描述 投票:0回答:1
java android testing gradle android-espresso
1个回答
1
投票

这对我有帮助 - https://github.com/bryanstern/dagger-instrumentation-example/issues/1

我必须添加一些代码到

build.gradle

debugCompile 'com.google.dexmaker:dexmaker-mockito:1.0'
debugCompile 'com.google.dexmaker:dexmaker:1.0'
debugCompile 'org.mockito:mockito-core:1.10.17'

debugCompile ('com.android.support.test.espresso:espresso-core:2.0') {
    exclude group: 'javax.inject'
}
debugCompile 'com.android.support.test:testing-support-lib:0.1'
© www.soinside.com 2019 - 2024. All rights reserved.