kotest / kotest-intellij-plugin

The official Kotest plugin for Intellij and Android Studio
Apache License 2.0
175 stars 23 forks source link

Run kmp commonTest failed causes ClassNotFoundException #320

Open lixi0912 opened 23 hours ago

lixi0912 commented 23 hours ago

Kotlin version: 1.9.22, 1.9.23, 2.0.22 Kotest version: 5.9.1 Kotest IntelliJ plugin version: 1.3.13-IC-2024.1.1 Intellij IDEA CE version: 2024.2.2

I clone the kotest-example-multiplatform project, and try to run commonTest using gutter icons, Kotest informs me that No JDK specified.

Configuring the JDK to 17.0.2 and trying again, I expected it to work as expected, but it threw a ClassNotFoundException: io.kotest.engine.launcher.MainKt error.

20240927_234627

I couldn't find any related problems. So i also tried running commonTest with kotlin-test(jvm), and it worked fine.

Maybe Kotest should run common tests on a special platform? Or did I miss any information?

20240927_232614 image