代码拉取完成,页面将自动刷新
//测试依赖
dependencies {
def espressoLib = "3.0.1";
androidTestImplementation ("com.android.support.test.espresso:espresso-core:${espressoLib}"){
exclude group: 'com.android.support', module: 'support-annotations'
}
// // Espresso dependencies
// androidTestImplementation "com.android.support.test.espresso:espresso-core:${espressoLib}"
// androidTestImplementation "com.android.support.test.espresso:espresso-contrib:${espressoLib}"
// androidTestImplementation "com.android.support.test.espresso:espresso-intents:${espressoLib}"
// androidTestImplementation "com.android.support.test.espresso:espresso-accessibility:${espressoLib}"
// androidTestImplementation "com.android.support.test.espresso:espresso-web:${espressoLib}"
// androidTestImplementation "com.android.support.test.espresso.idling:idling-concurrent:${espressoLib}"
// AndroidJUnitRunner and JUnit Rules
def runner = "1.0.1"
androidTestImplementation ("com.android.support.test:runner:${runner}"){
exclude group: 'com.android.support', module: 'support-annotations'
}
androidTestImplementation ("com.android.support.test:rules:${runner}"){
exclude group: 'com.android.support', module: 'support-annotations'
}
testImplementation 'junit:junit:4.12'
// Espresso的IdlingResource异步接口依赖:
// androidTestImplementation("com.android.support.test.espresso:espresso-idling-resource:${espressoLib}") {
// exclude group: 'com.android.support', module: 'support-annotations'
// }
// androidTestImplementation("com.android.support.test.espresso:espresso-contrib:${espressoLib}") {
// exclude group: 'com.android.support', module: 'support-v4'
// exclude group: 'com.android.support', module: 'appcompat-v7'
// exclude group: 'com.android.support', module: 'design'
// exclude group: 'com.android.support', module: 'recyclerview-v7'
// exclude group: 'com.android.support', module: 'support-annotations'
// exclude group: 'com.google.android.apps.common.testing.accessibility.framework', module: 'accessibility-test-framework'
// }
//
// def robolectricLib = "3.5"
//
// testCompile("org.robolectric:robolectric:${robolectricLib}")
//
// def powerMockVersion = "1.7.3";
//
// testCompile "org.powermock:powermock-core:${powerMockVersion}"
// testCompile "org.powermock:powermock-api-mockito:${powerMockVersion}"
// testCompile "org.powermock:powermock-module-junit4-common:${powerMockVersion}"
// testCompile "org.powermock:powermock-module-junit4:${powerMockVersion}"
// testCompile "org.powermock:powermock-module-junit4-legacy:${powerMockVersion}"
// testCompile "org.powermock:powermock-module-testng:${powerMockVersion}"
// testCompile "org.powermock:powermock-module-junit4-rule:${powerMockVersion}"
// testCompile "org.powermock:powermock-classloading-xstream:${powerMockVersion}"
//
// def mockitoVersion = "2.11.0";
//
// testCompile "org.mockito:mockito-core:${mockitoVersion}"
// testCompile "org.mockito:mockito-android:${mockitoVersion}"
// AndroidJUnitRunner and JUnit Rules
// androidTestImplementation "com.android.support.test:runner:1.0.1'
// androidTestImplementation "com.android.support.test:rules:1.0.1'
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。