java-snapshot-testing
java-snapshot-testing copied to clipboard
updateSnapshot should overwrite orphans too
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?