godog icon indicating copy to clipboard operation
godog copied to clipboard

Implement unambiguous keywords

Open mattwynne opened this issue 3 years ago • 1 comments

As described in https://github.com/cucumber/common/issues/768

mattwynne avatar May 25 '22 20:05 mattwynne

Godog doesn't currently have separate functions for different step types, we just use the Step function which takes a regex and a function. What are peoples thoughts on introducing functions for the different keywords as a first step? Having those functions would make it possible to record the keyword type so that we may assert it when matching in order to resolve the issue detailed above. Also, since these functions didn't exist before, we can implement unambiguous keywords from the get go, and it wouldn't be a breaking change.

otrava7 avatar Sep 09 '22 15:09 otrava7

I got started on creating keyword functions and capturing the keywords. Will submit a PR once I've added the logic for enabling unambiguous keywords: https://github.com/cucumber/godog/compare/main...otrava7:godog:implement-unambiguous-keywords

otrava7 avatar Oct 19 '22 12:10 otrava7