Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When all goes well, you get all the necessary feedback within IntelliJ.

Common issue: 'step undefined' error

Typically, when running features; IntelliJ should automaticaly fill in the Glue directory. When working with IntelliJ 13 however, this sometimes seems to fail, for all feature steps resulting in the message 'step undefined'. Alternatively, Cucumber may fail to recognize custom cuke packages that are not part of the general com.foreach.cuke.ctf package. These solutions to these two related issues are discussed below.

Issue 1: all steps are undefined

If this issue presents itself, do the following: at the top right of the IntelliJ window, choose 'Edit configuration' after clicking the dropdown box.

...

Additionally, it's also possible to do this for separate features, which will be available above 'Defaults' once the feature in question has been run at least once: for the feature, select the Deployment' tab, fill in the Glue package: com.foreach.cuke.ctf, and press 'OK'.

Issue 2: a custom step is undefined

Taking restobookings' tablemanager as an example, do the following:

...