Use JUnit5 engine to run unit tests in kotlin modules.
This commit is contained in:
parent
44fa1b1bcf
commit
f422ba30b9
|
@ -4,7 +4,6 @@ dependencies {
|
|||
api project(':core:domain')
|
||||
api other.twitterSerial
|
||||
|
||||
testImplementation testing.junit
|
||||
testImplementation testing.kotlinJunit
|
||||
testImplementation testing.mockito
|
||||
testImplementation testing.mockitoInline
|
||||
|
|
|
@ -11,7 +11,6 @@ dependencies {
|
|||
implementation other.kotlinReflect // for jackson kotlin, but to use the same version
|
||||
implementation other.okhttpLogging
|
||||
|
||||
testImplementation testing.junit
|
||||
testImplementation testing.kotlinJunit
|
||||
testImplementation testing.mockito
|
||||
testImplementation testing.mockitoInline
|
||||
|
|
|
@ -22,7 +22,8 @@ ext.versions = [
|
|||
koin : "1.0.0-beta-3",
|
||||
picasso : "2.71828",
|
||||
|
||||
junit : "4.12",
|
||||
junit4 : "4.12",
|
||||
junit5 : "5.3.1",
|
||||
mockito : "2.16.0",
|
||||
mockitoKotlin : "1.5.0",
|
||||
kluent : "1.35",
|
||||
|
@ -62,7 +63,8 @@ ext.other = [
|
|||
]
|
||||
|
||||
ext.testing = [
|
||||
junit : "junit:junit:$versions.junit",
|
||||
junit : "junit:junit:$versions.junit4",
|
||||
junitVintage : "org.junit.vintage:junit-vintage-engine:$versions.junit5",
|
||||
kotlinJunit : "org.jetbrains.kotlin:kotlin-test-junit:$versions.kotlin",
|
||||
mockitoKotlin : "com.nhaarman:mockito-kotlin:$versions.mockitoKotlin",
|
||||
mockito : "org.mockito:mockito-core:$versions.mockito",
|
||||
|
|
|
@ -13,8 +13,15 @@ sourceSets {
|
|||
test.resources.srcDirs += "${projectDir}/src/integrationTest/resources"
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
api other.kotlinStdlib
|
||||
|
||||
testImplementation testing.junit
|
||||
testRuntimeOnly testing.junitVintage
|
||||
}
|
||||
|
||||
jacoco {
|
||||
|
|
Loading…
Reference in New Issue