BDD with elegance and joy
Cucumber is sold as Behaviour Driven Development with elegance and joy, according to their website.
I’ve not had the opportunity to use full BDD testing in my day job for some time, in fact probably never - my last foray into testing was probably JUnit in my Java days; so I know it’s about time I got up to speed with it.
Like CouchDB, I saw a great presentation at Scotland on Rails, entitled Working Outside-in with Cucumber and RSpec (link is direct to mp4 file), that showed me that Cucumber was not as hard to learn as first thought and not as confusing as some of the RSpec screencasts I saw via PeepCode.
Here is a very basic example, of simple Cucumber syntax:
Scenario: Learning to use Cucumber Given that I do not know that much about "Cucumber" And I have not used "Behaviour Driven Development" really in anger before When I start "My Chain" Then I should see improvement When I start to blog about it
So now my chain has all it’s components ready: Sinatra, CouchDB and Cucumber - and is ready to start!
Image courtesy of viZZZual.com
Tags: Cucumber, My Chain, Ruby
Posted: 16 June 2010



