From b3515b30db57512ee822b6dbf9dd5859f46975a7 Mon Sep 17 00:00:00 2001 From: gedi Date: Sat, 27 Oct 2018 19:29:02 +0300 Subject: [PATCH] update example in readme --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7ebe5e1..382011e 100644 --- a/README.md +++ b/README.md @@ -241,7 +241,10 @@ The following example binds **godog** flags with specified prefix `godog` in order to prevent flag collisions. ``` go -var opt = godog.Options{Output: colors.Colored(os.Stdout)} +var opt = godog.Options{ + Output: colors.Colored(os.Stdout), + Format: "progress", // can define default values +} func init() { godog.BindFlags("godog.", flag.CommandLine, &opt) @@ -266,7 +269,7 @@ Then you may run tests with by specifying flags in order to filter features. ``` -go test -v --godog.format=progress --godog.random --godog.tags=wip +go test -v --godog.random --godog.tags=wip go test -v --godog.format=pretty --godog.random -race -coverprofile=coverage.txt -covermode=atomic ```