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

robstoll

10/21/2018, 11:31 AM
Does spek 2.0 support the JS platform by now? I saw that kotlin provides an experimental way to plug in custom junit frameworks (don't ask me how though)
r

raniejade

10/21/2018, 7:32 PM
Not yet, last time i looked at Kotlin JS - test support is baked into the compiler.
r

robstoll

10/21/2018, 7:55 PM
ah I see, that's a pity. Well then, I guess I have to use kotlin.test then 😞
r

raniejade

10/21/2018, 9:36 PM
Honestly, I'm not entirely sure yet about how to implement the JS support seeing that kotlin.test required some support from the compiler.
Runtime is already there, the biggest dilemma is test discovery.
g

gildor

10/22/2018, 5:24 AM
Maybe you should open an issue to expose js tests API for third-party test frameworks on Kotlin MPP? Or even work on KEEP proposal
r

raniejade

10/22/2018, 6:17 AM
A compiler plugin is interesting, generate code to bypass the need for runtime reflection. Then just use that in all platforms including JVM.
a

artem_zin

10/25/2018, 6:41 AM
I think we’ll be looking at JS support more seriously once we release 2.x and stabilize it, for now it’s already really good that Spek is organized as multiplatform project and a lot of code is Kotlin common
👍 1
we have limited development resources, it’s pretty much only Ranie now and @vanniktech and me reviewing, we have to be pragmatic and cut features