4
votes

Is there a Visual Studio Code extension that will write cucumber step definitions?

For example, with IntelliJ if I type

When I login as "fred" with password "barney"

into a feature, then press alt-enter on the undefined step, IntelliJ will auto-generate

When(/^I login as "([^"]*)" with password "([^"]*)"$/) do |arg1, arg2|
  pending
end

in one of my step definition files.

Can Visual Studio Code do this also? (I do have Cucumber Full Support installed; but, it seems to only autocomplete existing steps.)

4

4 Answers

2
votes

So far as I see Cucumebr VS Code extension does not provides auto-generation/update of test steps as IntelliJ or SpecFlow.

1
votes

Yes, use the SpecFlow plugin from SpecFlow and it will automatically generate all your cucumber feature steps.

-1
votes

There is Cucumber (Gherkin) Full Support plugin. It has auto-completion of steps, as well as many other features.