Does anyone know what artifact to use for MPP JVM ...
# kotest
b
Does anyone know what artifact to use for MPP JVM + JS setup?
s
kotest-framework-engine-js for js and kotest-runner-junit5-jvm for jvm
b
What about my common sourceSet?
s
you can't test common without compiling it to a target, so one of those two deps will be used for common tests too
b
I mean what artifact do i add to common sourceSet dependencies?
s
nothing, add js to your js target build, and jvm to your jvm target build, and then when you run gradle test, it will run the common tests too
If you are talking about what you need common test to be able to define tests, then you want kotest-framework-api
b
But then I won't have kotest dsl available in commonTest...
e.g. StringSpec
s
you will because kotest-framework-api brings that in
b
So i do need to add the framework artifact to common
s
framework-api yes
I suppose you could just add engine to common
and that would work as well
b
It doesn't until I add junit5 runtime artifact to jvm
s
then something is wrong in the build
b
Would be good to have all this in the docs for the future
s
Yep, if you want to contribute a PR that would be great
👍 1