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

Only delete unreferenced snapshots after a successful test run #440

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

max-sixty
Copy link
Collaborator

@max-sixty max-sixty commented Feb 15, 2024

Currently if a test panics, insta can remove basically all the snapshots in the project. This changes the behavior to only delete when tests are successful.

Possibly there's a more precise approach? Though in the meantime, this does seem better...

Currently if a test panics, insta can remove basically all the snapshots in the project. This changes the behavior to only run when tests are successful.

Possibly there's a more precise approach? Though in the meantime, this does seem better...
@mitsuhiko mitsuhiko merged commit 1f9ee0f into mitsuhiko:master Feb 19, 2024
5 of 6 checks passed
@mitsuhiko
Copy link
Owner

Good enough for now :)

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.

2 participants