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

Always save new actual result if snapshot comparison fails #47

Closed
skuzzle opened this issue Dec 9, 2022 · 1 comment
Closed

Always save new actual result if snapshot comparison fails #47

skuzzle opened this issue Dec 9, 2022 · 1 comment

Comments

@skuzzle
Copy link
Owner

skuzzle commented Dec 9, 2022

If a snapshot assertion fails, we could always persist the new actual result in a sibling file next to the actual .snapshot. Maybe with .snapshot_actual extension.
That would allow to update the snapshot by just removing the old file and removing the _actual suffix which does not require to run the test again

The .snapshot_actual files should not be checked into any SCM to avoid unncessary noise in the Git status overview.

@skuzzle
Copy link
Owner Author

skuzzle commented Dec 16, 2022

Will be released with 1.7.0

@skuzzle skuzzle closed this as completed Dec 16, 2022
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

No branches or pull requests

1 participant