Use JUnit5 engine to run unit tests in android modules.
This commit is contained in:
parent
f422ba30b9
commit
21bcb5429a
|
@ -13,7 +13,6 @@ dependencies {
|
||||||
exclude group: "com.android.support"
|
exclude group: "com.android.support"
|
||||||
}
|
}
|
||||||
|
|
||||||
testImplementation testing.junit
|
|
||||||
testImplementation testing.kotlinJunit
|
testImplementation testing.kotlinJunit
|
||||||
testImplementation testing.mockito
|
testImplementation testing.mockito
|
||||||
testImplementation testing.mockitoInline
|
testImplementation testing.mockitoInline
|
||||||
|
|
|
@ -49,8 +49,15 @@ android {
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
targetCompatibility = JavaVersion.VERSION_1_8
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
|
|
||||||
|
tasks.withType(Test) {
|
||||||
|
useJUnitPlatform()
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api other.kotlinStdlib
|
api other.kotlinStdlib
|
||||||
|
|
||||||
|
testImplementation testing.junit
|
||||||
|
testRuntimeOnly testing.junitVintage
|
||||||
}
|
}
|
||||||
|
|
||||||
jacoco {
|
jacoco {
|
||||||
|
|
|
@ -49,6 +49,10 @@ android {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.withType(Test) {
|
||||||
|
useJUnitPlatform()
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation project(':core:menudrawer')
|
implementation project(':core:menudrawer')
|
||||||
implementation project(':core:pulltorefresh')
|
implementation project(':core:pulltorefresh')
|
||||||
|
@ -67,6 +71,7 @@ dependencies {
|
||||||
|
|
||||||
testImplementation other.kotlinReflect
|
testImplementation other.kotlinReflect
|
||||||
testImplementation testing.junit
|
testImplementation testing.junit
|
||||||
|
testRuntimeOnly testing.junitVintage
|
||||||
testImplementation testing.kotlinJunit
|
testImplementation testing.kotlinJunit
|
||||||
testImplementation testing.mockitoKotlin
|
testImplementation testing.mockitoKotlin
|
||||||
testImplementation testing.kluent
|
testImplementation testing.kluent
|
||||||
|
|
Loading…
Reference in New Issue