Fix auto-service warning in instrumentation tests

This commit is contained in:
Torsten Grote 2020-09-14 14:04:40 -03:00 committed by Chirayu Desai
parent fa617fbaae
commit 5f771ff4ec

View file

@ -134,7 +134,10 @@ dependencies {
def mockk_version = "1.10.0" def mockk_version = "1.10.0"
testImplementation aospDeps // anything less fails tests run with gradlew testImplementation aospDeps // anything less fails tests run with gradlew
testImplementation 'androidx.test.ext:junit:1.1.1' testImplementation 'androidx.test.ext:junit:1.1.1'
testImplementation 'org.robolectric:robolectric:4.3.1' testImplementation('org.robolectric:robolectric:4.3.1') {
// https://github.com/robolectric/robolectric/issues/5245
exclude group: "com.google.auto.service", module: "auto-service"
}
testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_version" testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_version"
testImplementation "io.mockk:mockk:$mockk_version" testImplementation "io.mockk:mockk:$mockk_version"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_version" testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_version"