Skip to content

Add an easy bulk approve-all method #47

Open
@davidalpert

Description

@davidalpert

While working with approval tests it is sometimes the case that one code change can result in many similar changes to a set of previously baselined approved files.

In this scenario it can be simpler to bulk approve all and use source control tools to scan the approved files for diffs rather than to review each received vs approval one by one in the configured diff reporter.

It would be helpful to add a mechanism to bulk approve all verifications, either as another verifyOptions helper

type verifyOptions struct {
scrubbers []scrubber
extWithDot string
}

Or as an environment variable.

In some ruby-based approval use cases, for example, I have patched in an optional environment variable APPROVE_ALL; when set to something non-empty (e.g. 1 or 'true') all received diffs are approved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions