Hi all, I am willing to use Kotest to test my mult...
# kotest
d
Hi all, I am willing to use Kotest to test my multi-platform library (targets jvm, js and native). So I have a few questions that I can't fully answer with what I've gathered from the kotest.io documentation website. I hope you'll be able to answer those and I thank you in advance. I figured out that I had to add those dependencies to my
commonTest
source-set:
Copy code
implementation("io.kotest:kotest-framework-engine:$kotestVersion")
                implementation("io.kotest:kotest-framework-datatest:$kotestVersion")
I also had to add this dependencies to my
jvmTest
source-set, to have the tests picked up by JUnit:
Copy code
implementation("io.kotest:kotest-runner-junit5:$kotestVersion")
1. What are the corresponding ways to have tests picked up for JS and Native targets? 2. It seems to me that
kotest-framework-datatest
is not yet supported on Native target? (cf. https://search.maven.org/search?q=g:io.kotest%20kotest-framework-datatest) Will this be supported at some point? (I don't seem to see anything in its source code https://github.com/kotest/kotest/tree/master/kotest-framework/kotest-framework-datatest that would prevent it from running on Native, except the fact that the target is not defined in the Gradle build file. Or am I missing something?)
s
What version
d
Ah sorry, forgot to say
5.0.0.RC
.
s
These are the docs for multiplatform on the 5.0 release candidate https://kotest.io/docs/framework/multiplatform.html See if that helps
👍 1
2. I've just pushed a change to add all targets for datatest. That is definitely an oversight. Thanks for spotting that!
❤️ 1
d
Thanks I'll try with the gradle plugin right now!