https://kotlinlang.org logo
#kotest
Title
# kotest
a

abendt

03/06/2023, 8:51 PM
hi folks, i am using the intellij kotest plugin (1.3.67-IC-2022.3). In one project i get the error message: "No JDK specified" when trying to run a single test via the kotest plugin (Screenshot). Running all tests via the gradle integration works fine. The project SDK is properly setup (File -> Project structure) I have already tried to "Reload All Gradle projects" and also tried to "Invalidate Caches". Any ideas what might be wrong with my setup?
e

Emil Kantis

03/06/2023, 8:54 PM
Can you provide a screenshot of the generated Run Configuration? Should be something like this:
a

abendt

03/06/2023, 9:02 PM
image.png
e

Emil Kantis

03/06/2023, 9:03 PM
If you open the Project Structure again, and go to the module you're using SDK of.. (
arrow.arrow-core.commonTest
)
a

abendt

03/06/2023, 9:07 PM
image.png
e

Emil Kantis

03/06/2023, 9:08 PM
how about commonTest?
a

abendt

03/06/2023, 9:09 PM
image.png
e

Emil Kantis

03/06/2023, 9:11 PM
Right.. hm, wonder how the heck it's supposed to work 🙂 You never get the option to specify what target the test should run for..
a

abendt

03/06/2023, 9:18 PM
i am afraid i don't fully understand what you are saying here. am i supposed to see an option dialog here?
e

Emil Kantis

03/06/2023, 9:20 PM
Sorry, I'm just thinking out loud.. I'm not sure how this is supposed to work. I don't think there's anything wrong with your setup
11 Views