Этот коммит содержится в:
gedi 2018-10-27 19:29:02 +03:00
родитель e5547d95b6
коммит b3515b30db
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 56604CDCCC201556

Просмотреть файл

@ -241,7 +241,10 @@ The following example binds **godog** flags with specified prefix `godog`
in order to prevent flag collisions. in order to prevent flag collisions.
``` go ``` 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() { func init() {
godog.BindFlags("godog.", flag.CommandLine, &opt) godog.BindFlags("godog.", flag.CommandLine, &opt)
@ -266,7 +269,7 @@ Then you may run tests with by specifying flags in order to filter
features. 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 go test -v --godog.format=pretty --godog.random -race -coverprofile=coverage.txt -covermode=atomic
``` ```