File tree Expand file tree Collapse file tree 2 files changed +280
-178
lines changed Expand file tree Collapse file tree 2 files changed +280
-178
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ This means that the output is materialized and checked in to the repo; this
3333proves to be very handy for understanding the impact of a change.
3434
3535There's also a helpful "cheat" function, which rewrite the output when you run
36- the tests locally - set the HACK_AUTOFIX_EXPECTED_OUTPUT env var to a non-empty
36+ the tests locally - set the WRITE_GOLDEN_OUTPUT env var to a non-empty
3737string. This is useful when you have a big set of changes; it's just as easy to
3838review the changes yourself in the diff and there's not a ton of value in typing
3939them out.
@@ -87,7 +87,7 @@ the env-var cheat code.
8787 ``` bash
8888 cd pkg/controller/{{operator}}/tests
8989 touch tests/simple.out.yaml
90- HACK_AUTOFIX_EXPECTED_OUTPUT =1 go test ./...
90+ WRITE_GOLDEN_OUTPUT =1 go test ./...
9191 ```
9292
93931 . Verify the output is reproducible
You can’t perform that action at this time.
0 commit comments