go-bdd / gobdd

BDD framework
https://go-bdd.github.io/gobdd/
MIT License
115 stars 19 forks source link

NewSuite undefined when trying to run your example code. #134

Closed EmmanuelSammy closed 3 years ago

EmmanuelSammy commented 3 years ago

Describe the bug NewSuite is undefined when trying to use your example in the readme.md

To Reproduce

Expected behavior

Additional context code where the error is: func TestScenarios(t *testing.T) { suite := NewSuite(t) <--- error here suite.AddStep(I add (\d+) and (\d+), add) suite.AddStep(I the result should equal (\d+), check) suite.Run() }

github-actions[bot] commented 3 years ago

Thanks for creating your first issue! We are thankful for your help

EmmanuelSammy commented 3 years ago

Nevermind used gobdd.NewSuite() and it works thanks and sorry for the inconvenience.

bkielbasa commented 3 years ago

thanks for your issue. I updated the readme file and put the missing gobdd.NewSuite there. Hopefully, it won't confuse anyone else :)