-
Notifications
You must be signed in to change notification settings - Fork 57
KotlinTest NoClassDefFoundError #492
Copy link
Copy link
Open
Description
Attempting to run tests with KotlinTest causes the error below. I think it is simply because the Kobalt KotlinTestRunner is based on JUnit4. KotlinTest uses JUnit5, from version 3.0.0 I believe, which would have been after you added KotlinTest support at #312
───── kayman-design:compile
───── kayman-design:compileTest
───── kayman-design:test
Running tests with JUnit 4
***** ERROR Error: java.lang.NoClassDefFoundError: io/kotlintest/specs/BehaviorSpec
import com.beust.kobalt.project
import com.beust.kobalt.test
val p = project {
name = "kayman-design"
group = "com.example"
artifactId = name
version = "0.1"
dependencies {
compile("org.jetbrains.kotlin:kotlin-runtime:1.2.61")
compile("org.jetbrains.kotlin:kotlin-stdlib:1.2.61")
}
dependenciesTest {
compile("io.mockk:mockk:1.8.6")
compile("io.kotlintest:kotlintest-runner-junit5:3.1.10")
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels