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

Dude picture Dude · May 9, 2015 · Viewed 20k times · Source

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?

Answer

ItsMe-Rodders picture ItsMe-Rodders · May 14, 2015

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.