Ido Flax
09/20/2023, 5:47 PMThe Intellij plugin requires Kotest 4.2 or higher and will not run common tests of a multiplatform project
The error that i’m getting when trying to run single tests on a commonTest module:
com.intellij.execution.CantRunException: 'Kotlin SDK' is misconfigured
at com.intellij.execution.CantRunException.jdkMisconfigured(CantRunException.java:37)
at com.intellij.execution.configurations.JavaParameters.getValidJdkToRunModule(JavaParameters.java:126)
at com.intellij.execution.util.JavaParametersUtil.createModuleJdk(JavaParametersUtil.java:145)
at com.intellij.execution.util.JavaParametersUtil.configureModule(JavaParametersUtil.java:134)
at com.intellij.execution.util.JavaParametersUtil.configureModule(JavaParametersUtil.java:127)
at com.intellij.execution.JavaTestFrameworkRunnableState.configureClasspath(JavaTestFrameworkRunnableState.java:490)
at com.intellij.execution.JavaTestFrameworkRunnableState.lambda$createJavaParameters$4(JavaTestFrameworkRunnableState.java:352)
at com.intellij.openapi.application.ReadAction.lambda$run$1(ReadAction.java:64)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:923)
at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:76)
at com.intellij.openapi.application.ReadAction.run(ReadAction.java:63)
at com.intellij.execution.JavaTestFrameworkRunnableState.createJavaParameters(JavaTestFrameworkRunnableState.java:351)
at io.kotest.plugin.intellij.run.KotestRunnableState.createJavaParameters(KotestRunnableState.kt:27)
It happens when i try to run a single test or container in the gutter, or in the plugin. only way to run is on the class level gutter iconsam
09/20/2023, 6:25 PMsam
09/20/2023, 6:25 PMIdo Flax
09/20/2023, 6:26 PM