Use insta
or expect_test
for snapshot based testing of the parser
#254
Labels
insta
or expect_test
for snapshot based testing of the parser
#254
What do you think about using either
insta
, see examples:or rust-analyzer's
expect-test
?This approach is based on matching a
Debug
or any text representation, which allows us to reduceassert_matches
boilerplate when matching AST nodes. The downside is that if the shape of any node changes, the affected snapshots need to be rebuilt withcargo insta
.The text was updated successfully, but these errors were encountered: