Open danawoodman opened 4 years ago
@danawoodman
I am not sure that -update
does not work, but this is solved by adding flags after ./...
I am not sure that
-update
does not work, but this is solved by adding flags after./...
Unfortunately, that breaks if you're also testing other packages which don't use goldie
:
$ go test ./... -update
flag provided but not defined: -update
[...]
Same. Can anyone provide a solution. @sebdah do you have time to investigate?
I have a test file like:
And I am running:
And the output is:
I would expect it to create the golden file but it does nothing. If I remove the
-update
flag the the test runs but fails because of no golden file.Manually creating the golden file does work but I cannot get the
-update
flag to create the file.I am using v2.
Any ideas what I am doing wrong?