Hello ! Didn't find a way to define a unit test to...
# ksp
g
Hello ! Didn't find a way to define a unit test to validate my own compiler. Is there some documentation somewhere or a reference example by any chance?
j
not sure what you are talking about, but KSP is not a test framework.
e
You can use kotlin compile testing to test your processor if that's what you mean?
g
Yes that's what I meant, testing the output of my processor from a unit test. Will try this lib, thank you @evant !
g
Thanks @William Reed ! I finally did something very similar to that. Also I didn't required the TemporaryFolder with kotlin-compile-testing, not sure if it's required 🤔
w
would you mind sharing a gist or some other paste of how you did it? i’m just starting out with testing my project so i’m kind of blindly following the example i sent 🙂
g
Sure!
w
ty!
g
I lost some time due to KMP base project though, had to hack the compiler, not a stable solution yet 😕