In the above post from Bernhard and in my project (screenshot below) IntelliJ does not recognize the KotlinJS tests. There isn't any green arrow on the left to run the test class and same for the individual tests. Also, when you right click on the tests folder there isn't an option to run all tests. This makes it so the tests have to be run via Gradle. Does anyone know how to get IntelliJ to recognize the KotlinJS tests like it does for JVM tests?
a
andylamax
04/16/2024, 10:36 PM
You need to enable experimental multiplatform support in IDEA settings
g
gbaldeck
04/16/2024, 11:36 PM
Thanks! The green arrows are showing up, but for some reason each test is run twice. This seems to be only in the IDE, when I run the tests from the terminal with gradle it is only run once. Do you know what may be causing it?
gbaldeck
04/16/2024, 11:38 PM
image.png
a
andylamax
04/17/2024, 12:04 AM
Sadly, that's what's happening on my end as well. I know there is a ticket for this on youtrack as well
g
gbaldeck
04/17/2024, 12:14 AM
Ok, only a minor issue. Glad there's a ticket for it
b
Bernhard
04/17/2024, 7:18 AM
many thanks!
c
CLOVIS
04/17/2024, 7:38 AM
They do not run twice, IntelliJ just displays them twice. https://youtrack.jetbrains.com/issue/KTIJ-27307. It was marked as resolved just last week, so it's probably fixed in the next IDEA version