Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to unit test the output of protoc-gen-kotlin #48

Closed
garyp opened this issue May 25, 2020 · 0 comments · Fixed by #117
Closed

Add the ability to unit test the output of protoc-gen-kotlin #48

garyp opened this issue May 25, 2020 · 0 comments · Fixed by #117
Labels
enhancement New feature or request

Comments

@garyp
Copy link
Collaborator

garyp commented May 25, 2020

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.

@garyp garyp added the enhancement New feature or request label May 25, 2020
@garyp garyp linked a pull request Jan 19, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant