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

updateSnapshot should overwrite orphans too #136

Open
jackmatt2 opened this issue Dec 16, 2022 Discussed in #134 · 0 comments
Open

updateSnapshot should overwrite orphans too #136

jackmatt2 opened this issue Dec 16, 2022 Discussed in #134 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@jackmatt2
Copy link
Member

Discussed in #134

Originally posted by nedtwigg December 12, 2022
I've got this in my build.gradle, works great...

test {
	if (System.env['CI'] == null) {
		systemProperty "updateSnapshot", ""
	}
}

.. except when I remove or rename tests, because I get orphan snapshot errors. Then I've got to manually mess around with .snap and .snap.debug files again.

Is there an updateSnapshot mode which also automatically removes orphans?

@jackmatt2 jackmatt2 added enhancement New feature or request help wanted Extra attention is needed labels Dec 16, 2022
@jackmatt2 jackmatt2 changed the title Overwrite orphans too updateSnapshot should overwrite orphans too Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant