In our development team we want our testers to start writing cucumber features. I know, BDD, the features should be written before the code, but a tester could later add scenarios which we haven't previously thought or regression features for bugs.
For writing the scenarios she could learn the steps from other features or just browse the step definition files, but I felt it was a little uncomfortable, specially having to deal with regular expressions. So we thought about writing a script that lists all step definitions in a project: then she could browse the list, copy what she needed and fill in the parameters.
I went a step further: why not generating a page that allows her to browse steps, select one, fill in the parameters and then write it to a scenario? After doing this for many steps he could copy and paste the resulting scenario to the feature file. Autocompletion, no need to deal with regular expressions, just one copy and paste, nice colors (well, this last point might not be true).
And so cukecooker was born. You can think of it as a Cucumber IDE. To install it:
gem install cukecooker
To run it:
This will generate an HTML file. Open it and start writing cucumber scenarios. Here are some screenshots.
This is the step selection part, where typing in the input above filters the steps, you can navigate them using the arrow keys and choose one pressing enter (or using the mouse):
For steps which require a table or a multiline string I just put a big "TODO: complete this"... maybe in a future I'll include an editor for that.