Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snapshot-based testing with cargo-insta #666

Closed
wants to merge 2 commits into from

Conversation

bobbbay
Copy link
Contributor

@bobbbay bobbbay commented Jul 25, 2022

Closes #661.

@bobbbay bobbbay marked this pull request as draft July 25, 2022 23:40
Copy link
Contributor

@tomtau tomtau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and definitely an improvement for those textual snapshot assertions such as for errors.
I'm thinking what the debug snapshot diffs would be like (as the original assertions were sometimes on sub-expressions) and whether it'd be any better with other types of snapshot diffing... anyway, that could be explored later

@CAD97
Copy link
Contributor

CAD97 commented Jul 26, 2022

minver patch submitted upstream: mitsuhiko/insta#248

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migration towards snapshot-based testing
3 participants