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

Test if the generated code matches a file #31

Open
alexeyinkin opened this issue Sep 17, 2022 · 0 comments · May be fixed by #32
Open

Test if the generated code matches a file #31

alexeyinkin opened this issue Sep 17, 2022 · 0 comments · May be fixed by #32

Comments

@alexeyinkin
Copy link

I have large pieces of code generated. Testing for them using ShouldGenerate with the inline content makes it hard to read and update. Also I would like to write separate tests for the generated code. For these reasons I want to store the expected code in separate files.

This could be made with a new annotation like

@ShouldGenerateGolden('file.dart')
...

Or is there already an option to do something similar?

alexeyinkin added a commit to alexeyinkin/source_gen_test that referenced this issue Sep 18, 2022
@alexeyinkin alexeyinkin linked a pull request Sep 18, 2022 that will close this issue
alexeyinkin added a commit to alexeyinkin/source_gen_test that referenced this issue Oct 12, 2022
alexeyinkin added a commit to alexeyinkin/source_gen_test that referenced this issue Jan 21, 2023
alexeyinkin added a commit to alexeyinkin/source_gen_test that referenced this issue Jan 22, 2023
alexeyinkin added a commit to alexeyinkin/source_gen_test that referenced this issue Jun 25, 2023
alexeyinkin added a commit to alexeyinkin/source_gen_test that referenced this issue Jun 26, 2023
alexeyinkin added a commit to alexeyinkin/source_gen_test that referenced this issue Jul 2, 2023
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 a pull request may close this issue.

1 participant