In a Kotlin/JS project, test code in ./shared/src/...
# javascript
e
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
Could you please report it on YouTrack? The people who is responsible for the IDEA will take a look
e
@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
Ooh, experimental! That means of course 'use in production'. Love it. Thanks for the prompt replies, all!
e
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
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
Try to change a line in the JS test body.
e
That helps. I tried running Gradle task
cleanJsTest
but that didn't clean enough, I think
e
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
wasmJsTest tests still don't show in that IDE pane, and no gutter icons either
e
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
Thanks again, for all the tips