Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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. Copy and implement them

This works good for new features and so on, but becomes quite bothersome if you have a large feature and implement new steps in the middle or towards the end. To get the new step skeletons I need to run the whole feature.

Even with the

dryRun = true

option this takes up a long time.

I have heard that IntellyJ can generate these step skeletons directly and I would like to know if something like this is possible in Eclipse?

like image 837
Dude Avatar asked May 09 '15 10:05

Dude


1 Answers

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.

like image 182
ItsMe-Rodders Avatar answered Oct 13 '22 22:10

ItsMe-Rodders