File tree 2 files changed +280
-178
lines changed
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
33
33
proves to be very handy for understanding the impact of a change.
34
34
35
35
There'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
37
37
string. This is useful when you have a big set of changes; it's just as easy to
38
38
review the changes yourself in the diff and there's not a ton of value in typing
39
39
them out.
@@ -87,7 +87,7 @@ the env-var cheat code.
87
87
``` bash
88
88
cd pkg/controller/{{operator}}/tests
89
89
touch tests/simple.out.yaml
90
- HACK_AUTOFIX_EXPECTED_OUTPUT =1 go test ./...
90
+ WRITE_GOLDEN_OUTPUT =1 go test ./...
91
91
```
92
92
93
93
1 . Verify the output is reproducible
You can’t perform that action at this time.
0 commit comments