godog icon indicating copy to clipboard operation
godog copied to clipboard

Replace the generic Step function with Given/When/Then functions to match the majority of other languages

Open mirogta opened this issue 1 year ago • 14 comments

🤔 What's the problem you're trying to solve?

I'm trying to add support for Go (godog) to Cucumber language service, so that we can finally use Go BDD support in VSCode.

It's a bit tricky because of the generic Step func and not having the separate Given/When/Then funcs instead.

Raised a poll here: https://github.com/cucumber/godog/discussions/542

✨ What's your proposed solution?

  • Mark the Step function as deprecated
  • Add 3 new functions to match their respective counterparts in the feature files - Given/When/Then

⛏ Have you considered any alternatives or workarounds?

No alternatives considered. I think we should "just" do this to keep the syntax consistent with other programming languages.

📚 Any additional context?


This text was originally generated from a template, then edited by hand. You can modify the template here.

mirogta avatar Mar 15 '23 15:03 mirogta