package testlib_test import ( "os" "testing" "github.com/cucumber/godog" "github.com/cucumber/godog/colors" ) var opts = godog.Options{ Output: colors.Colored(os.Stdout), Format: "junit", Randomize: -1, } func TestMain(t *testing.T) { suite := godog.TestSuite{ Name: "example", ScenarioInitializer: initializeScenarios, Options: &opts, } status := suite.Run() if status != 0 { t.Errorf("godog run failed, status code: %d", status) } } func initializeScenarios(ctx *godog.ScenarioContext) { ctx.Step(`TestBasicHappyPath1`, TestBasicHappyPath1) } func TestBasicHappyPath1(t *testing.T) { return }