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

Feature request - allow overriding of filename #33

Open
patmacpherson-sc opened this issue Dec 22, 2021 · 1 comment
Open

Feature request - allow overriding of filename #33

patmacpherson-sc opened this issue Dec 22, 2021 · 1 comment

Comments

@patmacpherson-sc
Copy link

Currently, the files are named after the executed test.

However, if you want to run multiple approvals in a single test (for example, with a table driven test) then the different approvals will overwrite each other.

It would be nice to have a function like-

func VerifyWithFilename(t Failable, reader io.Reader, filename string) 

which overrides the default naming behaviour.

@hjwk
Copy link
Contributor

hjwk commented Jul 29, 2022

I think this can be easily added, I will work on a PR for it soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants