Is there an example of kotest framework mpp setup ...
# kotest
b
Is there an example of kotest framework mpp setup somewhere?
b
I have that exact setup yet I'm getting
Copy code
Caused by: org.junit.platform.commons.PreconditionViolationException: Cannot create Launcher without at least one TestEngine; consider adding an engine implementation JAR to the classpath
j
Can you try adding the engine-jvm dependency to your jvm deps and the engine-js to the js one? I noticed this on my project last week and thought it was something I had done. If that works for you we can track down what's going on
b
is engine dep in commonTest not sufficient?
j
I thought it was but perhaps it's not, I'll be on my work computer in 30 to check my project
b
Do I still need junit5 runner for jvmTest too?
j
I have that
b
Nope, same shit
What gradle plugin and lib versions do you use?
j
🤔 ok I'll check in a bit, I'm using 5. M2
I think gradle 6.7.1
b
I'm on io.kotest.multiplatform:5.0.0.5 & lib:5.0.0.M3
j
Ok I'll bump to m3 and see if that's it
b
Nvm, figured it out. There was race condition in my gradle scripts. Everything works now.
Well not everything, nested testing in js is still not supported, unfortunatelly
j
Ah cool, do you not need the specific engines listed?
b
No, just common is enough
s
nested testing will never work on JS unfortunately, as the outer scopes in karma/mocha don't support async
b
I see, thanks for clarifying. Would be good to have some table in the docs outlining what does and doesn't work on js, tho.
👍 1
👍🏻 1
j
Maybe we need multiplatspec