I’m using the `kotlin-multiplatform` plugin, and I...
# javascript
s
I’m using the
kotlin-multiplatform
plugin, and I’ve noticed that my js tests aren’t running on 1.3.50. Is there anything special I need to do to make them run?
s
If you go to your IDE's preferences: Build, Execution, Deployment -> Gradle -> Runner Try selecting the
platform test runner
. Maybe this helps?
s
I’m running them via gradle with the jsTest gradle command
s
Do the run using
gradlew test
or
gradlew allTests
?
s
the multiplatform plugin does have that command
s
allTests
and
check
should be available 🤔
At least it is for me 1.3.50 using js as target
s
I’m using the
kotlin-multiplatform
plugin. I assume you are using the js plugin?
s
No I am as well using the multiplatform plugin!
Just added the js() target, and nothing more
./gradlew pathModuleallTests
s
ahh
I think your tests aren’t actually running then
run jsTest
s
@Sebastian Aigner Might be able to help you here? 🙄
g
./gradlew check
will work, it’s most idiomatic way to run all tests in gradle
just specify target platforms for your js target: https://github.com/gildor/knel/blob/master/build.gradle.kts#L18-L21
s
@gildor to the rescue again. Dude - that was the problem. I didn’t realize we could specify js target platforms. Makes complete sense now and my tests are running.
👍 1