Skip to content

Commit 080849d

Browse files
committed
Migrate from Spek to Kotest
1 parent 5685428 commit 080849d

File tree

3 files changed

+757
-751
lines changed

3 files changed

+757
-751
lines changed

build.gradle.kts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ dependencies {
6666
// implementation("com.github.fge:json-schema-validator:2.2.6")
6767

6868
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
69-
testImplementation("org.spekframework.spek2:spek-dsl-jvm:2.0.17")
70-
testRuntimeOnly("org.spekframework.spek2:spek-runner-junit5:2.0.17")
69+
testImplementation("io.kotest:kotest-runner-junit5:4.6.4")
7170
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
7271
}
7372

@@ -79,7 +78,8 @@ val dependencyVersions = listOf(
7978
)
8079

8180
val dependencyGroupVersions = mapOf(
82-
"org.junit.jupiter" to "5.8.1"
81+
"org.junit.jupiter" to "5.8.1",
82+
"org.junit.platform" to "1.8.1"
8383
)
8484

8585
configurations.all {
@@ -105,10 +105,8 @@ tasks {
105105
kotlinOptions.jvmTarget = "1.8"
106106
}
107107

108-
withType(Test::class.java) {
109-
useJUnitPlatform {
110-
includeEngines("spek2")
111-
}
108+
withType<Test> {
109+
useJUnitPlatform()
112110
}
113111
}
114112

0 commit comments

Comments
 (0)