I separate different kinds of tests using build tags, eg:
// +build functional
package main
import (
"fmt"
"github.com/DATA-DOG/godog"
)
...
func FeatureContext(s *godog.Suite) {
s.Step(`^there are (\d+) godogs$`, thereAreGodogs)
s.Step(`^I eat (\d+)$`, iEat)
s.Step(`^there should be (\d+) remaining$`, thereShouldBeRemaining)
s.BeforeScenario(func(interface{}) {
Godogs = 0 // clean the state before every scenario
})
}
...
when I run godog without args, it cannot find the context initializer. Is there any way to make this work with godog?
I separate different kinds of tests using build tags, eg:
when I run godog without args, it cannot find the context initializer. Is there any way to make this work with godog?