I’ve created a compiler plugin to enable Spek (<ht...
# compiler
c
I’ve created a compiler plugin to enable Spek (https://github.com/spekframework/spek) to be used with Kotlin/Native. The compiler plugin performs a similar role to what the kotlin-test stuff in the compiler does - it looks for tests and registers them so that reflection at runtime is not necessary. However, I’ve never written a compiler plugin before and while it works, I don’t know if that’s because it should work or if it’s just a happy coincidence 🙂 Is there anyone here who knows what they’re doing who could have a look at it and tell me if I’m doing anything crazy? https://github.com/charleskorn/spek/blob/compiler-plugin/spek-kotlin-compiler-plugin/src/main/kotlin/org/spekframework/spek2/kotlincompilerplugin/SpekExtension.kt is the meaty part
👍 1
s
Hi @charleskorn, I was curious if this code was still available somewhere. I am curious to check out the implementation.
c
Yep, it's been merged into Spek with https://github.com/spekframework/spek/pull/657
s
Thanks for the reference 👍