Update README.md
Этот коммит содержится в:
родитель
84e064bd56
коммит
d0a345e507
1 изменённых файлов: 3 добавлений и 1 удалений
|
@ -158,6 +158,8 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
|
messages "github.com/cucumber/messages-go/v10" // needed for godog v0.9.0 (latest) and earlier
|
||||||
|
|
||||||
"github.com/cucumber/godog"
|
"github.com/cucumber/godog"
|
||||||
)
|
)
|
||||||
|
@ -186,7 +188,7 @@ func thereShouldBeRemaining(remaining int) error {
|
||||||
func FeatureContext(s *godog.Suite) {
|
func FeatureContext(s *godog.Suite) {
|
||||||
s.BeforeSuite(func() { Godogs = 0 })
|
s.BeforeSuite(func() { Godogs = 0 })
|
||||||
|
|
||||||
s.BeforeScenario(func(*godog.Scenario) {
|
s.BeforeScenario(func(*messages.Pickle) {
|
||||||
Godogs = 0 // clean the state before every scenario
|
Godogs = 0 // clean the state before every scenario
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче