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. 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:
Product Owner Survival Camp
- Zurich, CH, March 31-April 1
- Paris, FR, 28-29 April
- Oslo, NO, 5-6 May
- Munich, DE, May 20-21
- Rijswijk, NL 3-4 June
- Frankfurt, DE, 14-15 October
Specification by Example Workshop
- Rijswijk, NL, March 6-7
- Brno, CZ, March 27-28
- Stockholm, SE, 3-4 April
- Vienna, AT, May 13-14
- London, UK, May 15-16
- Oslo, NO, 12-13 Jun
- Oslo, NO, 16-17 October
Conference talks and workshops