I've got a similar problem but I'm not sure my tests are running at all: I've got a multiplatform module with JVM and JS targets, some tests in
commonTest
and some in
jsTest
, but when I run
./gradlew check
only the JVM tests are run. In the IDE I can't even see the run icon next to my JS tests. I've added this block to my `build.gradle.kts`:
Copy code
nodejs {
testTask {
useMocha()
}
}
and this line
Copy code
val jsTest by getting
to the sourcesets block, but when I run
./gradlew jsNodeTest
no test is run and I can see the test task was skipped:
:lib:jsNodeTest SKIPPED
a
Artem Kobzar
01/30/2024, 10:26 AM
We are working on fixing it
q
quiro
01/30/2024, 10:42 AM
cheers @Artem Kobzar
e
Edoardo Luppi
01/30/2024, 8:25 PM
In the IDE I can't even see the run icon next to my JS tests
Settings > Advanced Settings > Enable experimental Multiplatform IDE features
Edoardo Luppi
01/30/2024, 8:27 PM
> to the sourcesets block, but when I run
./gradlew jsNodeTest
no test is run and I can see the test task was skipped
Are you in 1.9.22? That's strange.
> val jsTest by getting
Minor detail, you don't need the
getting
accessor anymore, use
Copy code
jsTest {
...
}
Or, don't specify it at all if you don't need to specify dependencies, or other settings.
q
quiro
01/30/2024, 9:55 PM
Settings > Advanced Settings > Enable experimental Multiplatform IDE features
This fixes the visibility of the run icon in the IDE, thanks!
Are you in 1.9.22? That's strange.
1.9.21, will upgrade tomorrow and double check it
Minor detail, you don't need the
getting
accessor anymore
ah nice!
quiro
05/15/2024, 11:06 AM
Sorry to come back to this, but is there any workaround for this problem? In my case, the tests do not run at all, it's not just the reporting to be broken. Is there any previous version without this problem? I tried upgrading to 2.0, and it works, but I've got a bunch of errors and I'm not sure if they are bugs on my side or in Kotlin 2.0