From ac2333852fb26c0170b2ea83be0c872cc2c0994b Mon Sep 17 00:00:00 2001 From: Satoru Kitaguchi <64164948+satorunooshie@users.noreply.github.com> Date: Wed, 9 Aug 2023 10:53:47 +0900 Subject: [PATCH] update README (#3) --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 26d37e7..46fc5b3 100644 --- a/README.md +++ b/README.md @@ -18,4 +18,12 @@ t.Run(APITestName, func(t *testing.T) { }) ``` +For begin, run tests with `-golden` option to generate or update golden files. + +```sh +go test -v ./... -golden +``` + +After updating golden files, run tests without `-golden` option to compare the responses. + For more detail, see [examples](https://github.com/satorunooshie/e2e/blob/main/example/main_test.go).