Skip to content

updateSnapshot should overwrite orphans too #136

Description

@jackmatt2

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions