Skip to content

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

Open
@mirogta

Description

@mirogta

🤔 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: #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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions