Compile-testing
# announcements
j
Compile-testing
a
Can that also compare kotlin output with javasourceobjects? I’m using it now, though I’m still getting errors before the point it actually makes the comparison
j
Yeah it only works on Java. You'd have to do file matching for Kotlin which means you need an exact string you expect
t
If you ever find a good way let me know. Right now I'm driving blind with no tests shudder. String matching would be extremely brittle so I think I'm just gonna test that the output at least compiles
j
you could use UAST to parse the two trees and do a comparison
t
I will take a look at that but at first glance it doesn't seem worth the effort with so little documentation
a
I’m trying to test stuff based on the kotlin example: https://github.com/JetBrains/kotlin-examples/tree/master/gradle/kotlin-code-generation But with this way, the kapt folder option is unavailable for any java based tests. I’ve also never gotten any files to generate beyond the compile-test library