1
0
mirror of synced 2026-02-13 13:06:56 +00:00

Add test flag -update to update the golden files

Test flag `-update` can be used to update all the golden files whenever
the CLI output changes.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
This commit is contained in:
Sunny
2022-02-24 04:26:18 +05:30
parent 21f0d5d82c
commit edaf6ca522
7 changed files with 27 additions and 9 deletions

View File

@@ -96,6 +96,13 @@ Then you can run the end-to-end tests with:
make e2e
```
When the output of the Flux CLI changes, to automatically update the golden
files used in the test, pass `-update` flag to the test as:
```bash
make e2e TEST_ARGS="-update"
```
Teardown the e2e environment with:
```bash