2
votes

I'm working with the IntelliJ Cucumber plugin for Java. The plugin is great, and I've gotten it to work with all my tests. My question relates to the automatic step definition creation feature that occurs when the user presses Alt + Enter on a undefined step and selects a file to place the newly created method.

Currently, the method is named the same as the step and is empty excepting for a throw new PendingException().

Is there any way to change what the plugin places into the method on default? I'd like to change it to flag the step as a failing test.

2

2 Answers

2
votes

The default step definition text is hard-coded.

0
votes

The Snippet is generated to give you an example of how you can implement the step definition. You have to implement it yourself as Cucumber does not know what you are trying to do.