From ce214b7177a2c34e093c316d71fb50437cd72e90 Mon Sep 17 00:00:00 2001 From: Kumar Saurabh Date: Tue, 31 Mar 2020 16:15:46 +0530 Subject: [PATCH] Update README.md --- README.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 3f1e022..c542158 100644 --- a/README.md +++ b/README.md @@ -106,16 +106,17 @@ Then run all tests by executing the following in your command line: **Updating Test Data** -You can update the test data inside `./testdata/` by enabling the following flag inside the file [gocorona_test.go](./gocorona_test.go#L16) and then perform testing. By default the flag is set to `false`. -```go -var ( - updateTestData = flag.Bool( - "update", - true, - "if set then update testdata else use saved testdata for testing.", - ) -) +You can update the test data inside `./testdata/` dir by enabling the `-update` flag while testing. By default the flag is set to `false`. + +Or + +simply Run the following command to update all test data : + +```sh +$ mage generate ``` + + # Contributing I welcome pull requests, bug fixes and issue reports. Before proposing a change, please discuss your change by raising an issue.