java-snapshot-testing icon indicating copy to clipboard operation
java-snapshot-testing copied to clipboard

updateSnapshot should overwrite orphans too

Open jackmatt2 opened this issue 2 years ago • 0 comments

Discussed in https://github.com/origin-energy/java-snapshot-testing/discussions/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 avatar Dec 16 '22 11:12 jackmatt2