snapshot-test-insta #42
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/nac3#42
Loading…
Reference in New Issue
No description provided.
Delete Branch "snapshot-test-insta"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Use a library called 'insta' to better organize those longer correct test outputs in toplevel tests. 'insta' creates
.snap
files as snapshots of the test output, and will automatically do the diff if the output is different. This makes maintaining test cases with larger outputs a lot easier.@ -367,55 +250,7 @@ fn test_simple_function_analyze(source: Vec<&str>, tys: Vec<&str>, names: Vec<&s
pass
"}
],
vec![
In what situation do you use insta and in what situation do you use this vector?
Oh currently for the shorter error cases tests I use this vector, for the normal tests with longer outputs I use insta.
Maybe I could split the error cases and normal cases to two different sets of tests, one totally use insta and the other not use insta at all?
That is fine, just wondering.