compatibility with godog cli
Этот коммит содержится в:
родитель
4af9c12d7b
коммит
2f95563bb4
1 изменённых файлов: 6 добавлений и 1 удалений
|
@ -25,7 +25,7 @@ func TestMain(m *testing.M) {
|
||||||
var status int
|
var status int
|
||||||
if !specific {
|
if !specific {
|
||||||
status = RunWithOptions("godog", func(s *Suite) {
|
status = RunWithOptions("godog", func(s *Suite) {
|
||||||
SuiteContext(s)
|
GodogContext(s)
|
||||||
}, Options{
|
}, Options{
|
||||||
Format: format, // pretty format for verbose mode, otherwise - progress
|
Format: format, // pretty format for verbose mode, otherwise - progress
|
||||||
Paths: []string{"features"},
|
Paths: []string{"features"},
|
||||||
|
@ -39,3 +39,8 @@ func TestMain(m *testing.M) {
|
||||||
}
|
}
|
||||||
os.Exit(status)
|
os.Exit(status)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// needed in order to use godog cli
|
||||||
|
func GodogContext(s *Suite) {
|
||||||
|
SuiteContext(s)
|
||||||
|
}
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче