This plugin is intended to simplify usage of Jbehave framework in Intellij IDEA. Idea of this plugin was borrowed from Visual Studio + Specflow integration tool, that allows to produce step definitions in one-click way.
- Place caret on step in *.story file you want to generate
- Press Alt+Enter
- Select "Generate BDD Step"
- Go to file you want your step definition to be placed into and paste ready step definition from standard clipboard (Ctrl+V)
- Enjoy:)
- Place caret on step in *.story file you want to generate
- Press Alt+Enter
- Select "Generate BDD Step into class"
- Pick proper class for newly generated step definition
- Close class picker by clicking "Select" (Enter) for staying in current feature file
or alternatively
Close class picker by clicking "Select and navigate" (Alt+Enter) to open your selected class on a position where new method is inserted - Enjoy :)
This plugin supports automatic parameter extraction. Parameters use the mechanism of Jbehave parameter injection Jbehave docs. So far here is the list of parameters supported:
- String - parameters for parametrized scenarios (in <> brackets)
- Double
- Integer
- Boolean
- ExamplesTable
This plugin allows enables new shortcuts to speed up step generation:
- Click Ctrl+Alt+B in feature file to generate step for the line under caret
- On classpicker dialog use Alt+Enter to invoke "Select and navigate" action
Make step definitions insertable into class files- Generate all step definitions in the story file
- Integrate this functionality with IntelliJbehave plugin
- Improve parameter type support
- Implement rearrangement of method inside step definition class