During his Executable User Stories with RSpec and BDD session at Agile 2008 today,
Aslak Hellesøy presented Cucumber, a new rewrite of RSpec Story Runner. According to Aslak, Cucumber is easier to use than the previous Story Runner. It also supports internationalisation, executing from the command line or rake, has colour coding and better error reporting.
Internationalisation is an interesting addition to this tool as it allows people outside of English-speaking regions to write acceptance tests in their language.
A very interesting novelty of this tool is supplying additional combinations of inputs and expected outputs for a scenario using a simple table syntax appended to the classic RSpec scenario template, very similar to a classic FIT column fixture. This could make writing and maintaining BDD tests a lot easier as you no longer have to copy and paste the scenario descriptions to use different arguments.
When Cucumber does not recognise a step, it will print out a Ruby snippet that could be used to implement the step in the test feature (the glue between scenarios and domain code), which is an interesting addition that makes feature writing easier for developers.
Download Cucumber from http://github.com/aslakhellesoy/cucumber.
I'm Gojko Adzic, author of Impact Mapping and Specification by Example. My latest book is Fifty Quick Ideas to Improve Your User Stories. To learn about discounts on my books, conferences and workshops, sign up for Impact or follow me on Twitter. Join me at these conferences and workshops:
Specification by Example Workshops
- Rijswijk, NL, 12-13 March
- Stockholm, SE, 15-16 April
- Vienna, AT, 20-21 April
- Istanbul, TR, 7-8 May
- Wrocław, PL, 11 May
Impact Mapping Workshops
- Product Owner Survival Camp, Vienna, AT, 19-20 March
Conference talks and workshops