https://kotlinlang.org logo
#kotest
Title
# kotest
r

robstoll

04/21/2021, 5:42 PM
Does kotest support native targets? There is something mentioned in get started but there is no setup show
s

sam

04/21/2021, 5:44 PM
For assertions or test layout or prop tests ?
r

robstoll

04/21/2021, 5:45 PM
Running tests
s

sam

04/21/2021, 5:45 PM
For assertions yes (except JVM specific stuff like JDBC of course), prop testing same, and framework no. Framework is JS / JVM at the moment but @Jim plans to (possibly?) tackle this.
r

robstoll

04/21/2021, 5:47 PM
@Jim any timeframe? 😁 I could also try to help out
s

sam

04/21/2021, 5:47 PM
Yes please! Get involved. Really we just need someone to get started and set something up so we can all jump in and contribute.
j

Jim

04/21/2021, 5:48 PM
😂 help meh!
My time frame is as soon as I can but probably not getting started before this weekend
s

sam

04/21/2021, 5:50 PM
I'd like to get involved too. I don't know much about native but I'm interested in learning.
Someone did some digging for us a while back, let me get the thread
j

Jim

04/21/2021, 5:57 PM
Yeah I’m a bit worried about this: https://kotlinlang.org/docs/gradle.html#set-dependencies-on-test-libraries it doesn’t appear like there’s any explicit kotlin.test native stuff which means it’s probably compiler plugin… which would be fun by I can’t imagine it being a quick thing
s

sam

04/21/2021, 5:59 PM
If you've heard of Spek, that has a compiler plugin for native. It hasn't been touched in a long time though but could be a starting point. https://github.com/spekframework/spek/tree/2.x/spek-kotlin-compiler-plugin-native/src/main/kotlin/org/spekframework/spek2/kotlin
j

Jim

04/21/2021, 6:00 PM
TODO: this extension is broken starting from 1.3.7x
this doesn’t bode well though
s

sam

04/21/2021, 6:00 PM
Might be a starting point through with some ideas
👍 1
j

Jim

04/21/2021, 6:40 PM
that’s the stuff 👍