Configure JUnit test

This commit is contained in:
Him188 2020-06-17 13:25:28 +08:00
parent 4945642c5e
commit 11cb8d5c68

View File

@ -67,6 +67,15 @@ dependencies {
testApi(kotlin("stdlib-jdk8"))
testApi(kotlin("test"))
testApi(kotlin("test-junit5"))
testImplementation("org.junit.jupiter:junit-jupiter-api:5.2.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.2.0")
}
tasks {
"test"(Test::class) {
useJUnitPlatform()
}
}
// region PUBLISHING