Skip to content

Test if the generated code matches a file #31

@alexeyinkin

Description

@alexeyinkin

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions