https://kotlinlang.org logo
#javascript
Title
# javascript
e

Erik

03/13/2024, 4:21 PM
In a Kotlin/JS project, test code in ./shared/src/jsTest/kotlin/ExampleTest.kt doesn't show gutter icons in my IDE (Android Studio Hedgehog, because it's a multiplatform project). What's wrong, or is this a known problem?
a

Artem Kobzar

03/13/2024, 5:21 PM
Could you please report it on YouTrack? The people who is responsible for the IDEA will take a look
e

Edoardo Luppi

03/13/2024, 7:22 PM
@Artem Kobzar no need, I think he refers to the gutter test runners. Usual issue. @Erik check Advanced Settings > Kotlin > Experimental Multiplatform Features
2
image.png
e

Erik

03/15/2024, 10:15 AM
Ooh, experimental! That means of course 'use in production'. Love it. Thanks for the prompt replies, all!
e

Edoardo Luppi

03/15/2024, 10:18 AM
The whole move under that flag has been a bit of a mess. It dates back to September 2023 and people still don't know about it.
e

Erik

03/15/2024, 10:28 AM
Interestingly, my project also targets Kotlin/Wasm and the tests in wasmJsTest still do not show gutter icons after enabling the checkbox and restarting my IDE. jsTest files do show the gutter run icons.
Oh and when I run a js test from the gutter, the test run pane shows in Android Studio, but 'Test events were not received'
e

Edoardo Luppi

03/15/2024, 10:32 AM
Try to change a line in the JS test body.
e

Erik

03/15/2024, 12:01 PM
That helps. I tried running Gradle task
cleanJsTest
but that didn't clean enough, I think
e

Edoardo Luppi

03/15/2024, 12:02 PM
When you run tests through the gutter there shouldn't be caching on, so it should execute each time. If it's not the case, I'd open a YT issue.
e

Erik

03/15/2024, 12:02 PM
wasmJsTest tests still don't show in that IDE pane, and no gutter icons either
e

Edoardo Luppi

03/15/2024, 12:04 PM
Probably wasmJs still do not support direct execution. You can select the target when tests are in
commonTest
tho.
That's what I do usually. All tests under
commonTest
e

Erik

03/15/2024, 12:05 PM
Thanks again, for all the tips