From dba5f4e28fdc6045a6e869ff445253be3ce708fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20L=C3=B6nnblad?= Date: Thu, 5 Mar 2020 18:05:11 -0300 Subject: [PATCH] Update README.md --- README.md | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/README.md b/README.md index 0c8c78a..367a5de 100644 --- a/README.md +++ b/README.md @@ -149,36 +149,12 @@ console output snippets in order to test our feature requirements: package main import ( - "flag" "fmt" - "os" - "testing" "github.com/cucumber/godog" - "github.com/cucumber/godog/colors" messages "github.com/cucumber/messages-go/v9" ) -var opt = godog.Options{Output: colors.Colored(os.Stdout)} - -func init() { - godog.BindFlags("godog.", flag.CommandLine, &opt) -} - -func TestMain(m *testing.M) { - flag.Parse() - opt.Paths = flag.Args() - - status := godog.RunWithOptions("godogs", func(s *godog.Suite) { - FeatureContext(s) - }, opt) - - if st := m.Run(); st > status { - status = st - } - os.Exit(status) -} - func thereAreGodogs(available int) error { Godogs = available return nil