3,2 КиБ
I am excited to announce the release of godog v0.9.0.
Here follows a summary of notable changes, and the non backward compatible changes. The full change log is available here.
Notable Changes
Most importantly, note that the gherkin core is changed to gherkin-go.
Non backward compatible changes
Install godog
With the change of dependencies for godog, which relies on go modules
, installing godog now requires go modules to be active.
If you are running within the $GOPATH
, you would need to install godog like this:
GO111MODULE=on go get github.com/cucumber/godog/cmd/godog@v0.9.0
- Adding
GO111MODULE=on
will allow go get and go mod to work together as intended. - Adding
@v0.9.0
will install v0.9.0 specifically instead of master.
If you are running outside of the $GOPATH
, you should still specify a version.
Gherkin Core
The following types have been switched for messages-go.
old | new |
---|---|
gherkin.Feature | messages.GherkinDocument |
gherkin.Scenario | messages.Pickle |
gherkin.ScenarioOutline | messages.Pickle |
gherkin.Step | messages.Pickle_PickleStep |
gherkin.DocString | messages.PickleStepArgument_PickleDocString |
gherkin.DataTable | messages.PickleStepArgument_PickleTable |
Step Defintions
StepDef
has been renamed toStepDefinition
- Steps that earlier accepted
*gherkin.DocString
or*gherkin.DataTable
needs to be updated to use*messages.PickleStepArgument_PickleDocString
resp.*messages.PickleStepArgument_PickleTable
. Example.
Hooks
The updated hooks can be found here.
BeforeFeature
andAfterFeature
hooks now accept*messages.GherkinDocument
instead of*gherkin.Feature
BeforeScenario
andAfterScenario
hooks now accept*messages.Pickle
instead ofinterface{}
BeforeStep
andAfterStep
hooks now accept*messages.Pickle_PickleStep
instead*gherkin.Step
Formatter
The formatter interface have recieved some updates, the updated version can be found here.
Feature
now accepts*messages.GherkinDocument
instead of*gherkin.Feature
Node
has been renamed toPickle
and now accepts*messages.Pickle
instead ofinterface{}
Defined
,Failed
,Passed
,Skipped
,Undefined
,Pending
now takes*messages.Pickle
as the first argument and*gherkin.Step, *StepDef
have been updated to*messages.Pickle_PickleStep, *StepDefinition
Full change log
See CHANGELOG.md.