8000 Testing additional files in Incremental source generator snapshot tests · Issue #83 · andrewlock/blog-examples · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Testing additional files in Incremental source generator snapshot tests #83
Open
@tm-nti

Description

@tm-nti

I have read your awesome article on testing incremental generators:
https://andrewlock.net/creating-a-source-generator-part-2-testing-an-incremental-generator-with-snapshot-testing/

Which is great for testing compiled code, but in my use case I have some .json files I want to base the generated code on.
I am using the procedure described in the cookbook.
I managed to modify the testutil class (gist) and it seems to work

I mostly wish to know if there is a better way to do this, my modification feels dodgy and I am no expert on source generators

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0