Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run kmp commonTest failed causes ClassNotFoundException #320

Open
lixi0912 opened this issue Sep 27, 2024 · 1 comment
Open

Run kmp commonTest failed causes ClassNotFoundException #320

lixi0912 opened this issue Sep 27, 2024 · 1 comment

Comments

@lixi0912
Copy link

lixi0912 commented Sep 27, 2024

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

@carlonzo
Copy link

having same issue here. cant figure this out yet :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants