Use JUnit5 engine to run unit tests in android modules.

This commit is contained in:
Yahor Berdnikau 2018-10-06 14:54:28 +02:00
parent f422ba30b9
commit 21bcb5429a
3 changed files with 12 additions and 1 deletions

View File

@ -13,7 +13,6 @@ dependencies {
exclude group: "com.android.support"
}
testImplementation testing.junit
testImplementation testing.kotlinJunit
testImplementation testing.mockito
testImplementation testing.mockitoInline

View File

@ -49,8 +49,15 @@ android {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
tasks.withType(Test) {
useJUnitPlatform()
}
dependencies {
api other.kotlinStdlib
testImplementation testing.junit
testRuntimeOnly testing.junitVintage
}
jacoco {

View File

@ -49,6 +49,10 @@ android {
}
}
tasks.withType(Test) {
useJUnitPlatform()
}
dependencies {
implementation project(':core:menudrawer')
implementation project(':core:pulltorefresh')
@ -67,6 +71,7 @@ dependencies {
testImplementation other.kotlinReflect
testImplementation testing.junit
testRuntimeOnly testing.junitVintage
testImplementation testing.kotlinJunit
testImplementation testing.mockitoKotlin
testImplementation testing.kluent