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