Этот коммит содержится в:
Fredrik Lönnblad 2020-05-25 09:19:29 +02:00 коммит произвёл GitHub
родитель 84e064bd56
коммит d0a345e507
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23

Просмотреть файл

@ -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
}) })