igor.wojda
10/09/2023, 5:30 PMNoClassDefFoundError
(this class is actually used by Konsist). It looks like Kotest plugin may have a bug but I want to confirm this:
• ✅ tests are passing via cmd
• ✅ tests are passing when running tests for entire class (attached gif)
• ❌ tests are failing when single test from the same class (attached gif)
I have never seen this issue with JUnit 5.
Here is the project (this is zipped project on purpose as this may be cache related issue)
https://1drv.ms/u/s!AkZ_52b5bWyOgu0ua2wqDfgYcf8onA?e=nekfCVLeoColman
10/09/2023, 5:33 PMrunJUnitPlatform
wasn't setup correctly, and thus gradle is not executing the test correctlysam
10/09/2023, 5:35 PMigor.wojda
10/09/2023, 5:55 PMLightVirtualFile
is used by Konsist and for some reason is not available only for this single test run (attaching stack)
In terms of source setes - this is a defualt KMP project. I think I was only touching this part:
sourceSets {
val commonMain by getting
val commonTest by getting {
dependencies {
implementation(kotlin("test"))
}
}
val jvmMain by getting {
dependencies {
implementation("io.ktor:ktor-server-netty:2.3.5")
implementation("io.ktor:ktor-server-html-builder-jvm:2.3.5")
implementation("org.jetbrains.kotlinx:kotlinx-html-jvm:0.10.0")
}
}
val jvmTest by getting {
dependencies {
implementation("com.lemonappdev:konsist:0.13.0")
implementation("io.kotest:kotest-runner-junit5:5.7.2")
}
}
val jsMain by getting {
dependencies {
implementation("org.jetbrains.kotlin-wrappers:kotlin-react:18.2.0-pre.346")
implementation("org.jetbrains.kotlin-wrappers:kotlin-react-dom:18.2.0-pre.346")
implementation("org.jetbrains.kotlin-wrappers:kotlin-emotion:11.9.3-pre.346")
}
}
val jsTest by getting
}
sam
10/09/2023, 5:58 PMigor.wojda
10/09/2023, 6:02 PMorg.jetbrains.kotlin:kotlin-compiler:1.9.10
sam
10/09/2023, 6:08 PMigor.wojda
10/09/2023, 6:09 PMsam
10/09/2023, 6:10 PMigor.wojda
10/09/2023, 6:11 PMsam
10/09/2023, 6:15 PMigor.wojda
10/09/2023, 6:15 PMLeoColman
10/09/2023, 6:24 PMigor.wojda
10/09/2023, 7:17 PM