You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create some test scaffolding to allow testing that the source code produced by protoc-gen-kotlin is compilable by the Kotlin compiler.
Probably the unit test would take a CodeGeneratorRequest as input, run it through pbandk.gen.runGenerator(), and use a library like https://github.com/tschuchortdev/kotlin-compile-testing for running the Kotlin compiler on the CodeGeneratorResponse output. Even better would be to have the unit test take the source of a .proto file as input and the test would run protoc in order to generate the CodeGeneratorRequest.
The text was updated successfully, but these errors were encountered:
Create some test scaffolding to allow testing that the source code produced by
protoc-gen-kotlin
is compilable by the Kotlin compiler.Probably the unit test would take a
CodeGeneratorRequest
as input, run it throughpbandk.gen.runGenerator()
, and use a library like https://github.com/tschuchortdev/kotlin-compile-testing for running the Kotlin compiler on theCodeGeneratorResponse
output. Even better would be to have the unit test take the source of a.proto
file as input and the test would runprotoc
in order to generate theCodeGeneratorRequest
.The text was updated successfully, but these errors were encountered: