8000 Replace manual snapshot tests with `insta` · Issue #51 · librasn/compiler · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content 8000
Replace manual snapshot tests with insta #51
Open
@XAMPPRocky

Description

@XAMPPRocky

While looking into some of the generated code, and seeing if lazy_static could be replaced with std::sync::LazyLock (it can't currently), I noticed the setup in rasn-compiler-tests. Currently if you make a change to the generated code, every single instance of the tests needs to be manually updated. I think it would be better if these tests were moved to using insta, because that would allow for updating generated tests automatically in a single command and provide better error messages.

https://docs.rs/insta/latest/insta/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0