Skip to content

Add codegen tests #9

@Egorand

Description

@Egorand

There's no way to check the correctness of generated code after making changes to the code generation module. I can highly recommend the "golden values" approach - generate code, make sure it's correct and store it in local files. Write tests that would generate code and compare it against the golden files. Update golden files whenever necessary (e.g. formatting changes, new features, etc.).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions