Is there a way to directly generate Step Definitions in Eclipse without Running Cucumber?

后端 未结 3 1874
迷失自我
迷失自我 2021-02-07 06:11

Im doing integration testing with cucumber and Gradle in Eclipse.

For now my workflow is

  1. Write a feature file
  2. Run it to generate step skeletons
相关标签:
3条回答
  • 2021-02-07 06:38

    Why is this a problem in Eclipse? If the feature file is big, then you only copy the modified scenario to a new feature file, and generate steps based on the new feature file.

    0 讨论(0)
  • 2021-02-07 06:51

    Yes there is a nice plugin for Eclipse that also has even more benefits: Cucumber People The only Problem I got is, that it checks the steps after every save in the Cucumber console.

    I also used the Natural plugin before.

    0 讨论(0)
  • 2021-02-07 06:54

    Not for Eclipse, but it might prove helpful to you as a stop gap: https://chrome.google.com/webstore/detail/tidy-gherkin/nobemmencanophcnicjhfhnjiimegjeo

    It's capable of generating Java step defs from the text you paste into the editor. Hope it helps in some way while you await an answer for Eclipse.

    0 讨论(0)
提交回复
热议问题