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 PMLeoColman
10/09/2023, 5:34 PMrunJUnitPlatform
wasn't setup correctly, and thus gradle is not executing the test correctlyLeoColman
10/09/2023, 5:34 PMsam
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 PMigor.wojda
10/09/2023, 6:04 PMorg.jetbrains.kotlin:kotlin-compiler:1.9.10
sam
10/09/2023, 6:08 PMigor.wojda
10/09/2023, 6:09 PMigor.wojda
10/09/2023, 6:09 PMigor.wojda
10/09/2023, 6:09 PMsam
10/09/2023, 6:10 PMsam
10/09/2023, 6:10 PMsam
10/09/2023, 6:10 PMigor.wojda
10/09/2023, 6:11 PMigor.wojda
10/09/2023, 6:15 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 PMigor.wojda
11/04/2023, 6:05 PMigor.wojda
03/10/2024, 4:32 PMsam
03/10/2024, 6:17 PMigor.wojda
03/11/2024, 4:45 PMAndroid studio
(Iguana | 2023.2.1).
Fastest way to reproduct is
1. Checkout this project and Open in Android Studio
https://github.com/LemonAppDev/konsist/tree/main/samples/starter-projects/konsist-starter-android-gradle-kotlin-kotest
2. Run tests in SampleKonsistTest
classsam
03/11/2024, 5:01 PMigor.wojda
03/11/2024, 5:42 PMigor.wojda
06/04/2024, 1:21 PMMini
06/17/2024, 12:52 PMigor.wojda
09/23/2024, 10:35 AMMini
10/18/2024, 12:49 PMigor.wojda
10/21/2024, 8:47 AMsam
10/21/2024, 10:36 PMigor.wojda
10/22/2024, 8:33 AMigor.wojda
10/22/2024, 8:33 AMMini
10/22/2024, 8:36 AMsam
10/22/2024, 11:11 PMMini
10/23/2024, 5:53 AMMini
03/18/2025, 9:00 AM