Join Slack
Communities
Powered by
I’ve created a compiler plugin to enable Spek (<ht...
# compiler
c
charleskorn
02/12/2019, 6:28 AM
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
simon.vergauwen
06/03/2019, 8:41 PM
Hi
@charleskorn
, I was curious if this code was still available somewhere. I am curious to check out the implementation.
c
charleskorn
06/03/2019, 10:26 PM
Yep, it's been merged into Spek with
https://github.com/spekframework/spek/pull/657
s
simon.vergauwen
06/03/2019, 10:27 PM
Thanks for the reference 👍
2
Views
Open in Slack
Previous
Next