https://kotlinlang.org logo
Title
m

Marius Kotsbak

02/17/2021, 3:59 PM
Hi! Why are versions of "kotest-core-jvm" lagging behind "kotest-assertions-core-jvm" etc?
s

sam

02/17/2021, 4:00 PM
core is an old module no longer needed
m

Marius Kotsbak

02/17/2021, 4:00 PM
Hmm, so where to get FunSpec from then?
s

sam

02/17/2021, 4:00 PM
This will run through the modules you need for a particular setup https://kotest.io/docs/quickstart
m

Marius Kotsbak

02/17/2021, 4:01 PM
Yeah, but not mentioning how to get the DSL test styles.
s

sam

02/17/2021, 4:04 PM
they come in as part of kotest-framework-api, but that will be brought in automatically when you add the junit runner
are you JVM based ?
m

Marius Kotsbak

02/17/2021, 4:04 PM
Ah, I was lacking junit runner before I added that old lib. Looks like I can just remove it then.
Yes
s

sam

02/17/2021, 4:05 PM
ok so then yeah all you need is
testImplementation 'io.kotest:kotest-runner-junit5:$version'
that's the junit platform runner but it brings in the other stuff you need
🙌 1
If you want assertions too then
testImplementation 'io.kotest:kotest-assertions-core:$version'
m

Marius Kotsbak

02/17/2021, 4:06 PM
Yeah, got it to work then, thanks! 🙂
s

sam

02/17/2021, 4:07 PM
awesome