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

Update tests for @bufbuild/protoplugin #651

Merged
merged 24 commits into from Dec 12, 2023
Merged

Update tests for @bufbuild/protoplugin #651

merged 24 commits into from Dec 12, 2023

Conversation

timostamm
Copy link
Member

@timostamm timostamm commented Dec 12, 2023

This PR updates all tests for the plugin framework to use the internal upstream-protobuf package to generate descriptors and code generator requests on the fly. The first tests using this approach were added in #649 - with this PR, all tests are using it. This unblocks tests covering option retention, and generally gives us the flexibility in test setups we need to support editions.

Into one file for import() and one for file().
Extend coverage.
Extend coverage:
- Check that no duplicate files are generated
- Check that expected generator functions are called
- Check that transpile is called when expected
@timostamm timostamm requested review from smaye81, a team, jhump and Alfus December 12, 2023 15:32
@timostamm timostamm merged commit db30763 into main Dec 12, 2023
6 checks passed
@timostamm timostamm deleted the tstamm/next branch December 12, 2023 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants