BDD is still kinky 4
I still believe that Behavior-Driven Development is kinkier than Test-Driven Development...
Enjoying the content? Be sure to subscribe to my RSS feed.
Posted by Robby Russell Tue, 10 Apr 2007 21:51:00 GMT
Enjoying the content? Be sure to subscribe to my RSS feed.
I'm the Founder and Executive Director of Planet Argon, which has been focusing on providing clients with design, development, consulting, training, and hosting with Ruby on Rails for over three years.
If you have found this material to be useful, you might consider recommending me on Working With Rails. ;-)
Upcoming Events
Past Events
activerecord agile apple argonexpress bdd book boxcar business canadaonrails clients communication community d3 deployment design development dhh dialogue driven gems git group hosting interaction jvoorhis mysql osx planetargon portland postgresql process programming projects question rails railsconf rbot refactoring rspec ruby rubyonrails rubyurl scrum speaking subversion team testing tip travel typo

Kinkier than ever, especially with the new ‘do it’ syntax available in 0.9 :) ( actually ‘describe …. do’ replaces ‘setup ... do’ and ‘it …. do’ replaces ‘specify …. do’ )
By the way, looking at your picture Robby, I think that you need to get kinkier, check on 0.9!
I know that BDD is not about the syntax you use but about the philosophy/technique, but come on, a nice syntax helps a lot!
For those who didn’t try BDD yet, be careful, if you start, you won’t be able to go back to your previous way of testing!
I love the idea of BDD and have tried it in a few small projects, but the RSpec implementation seems to be changing too often to use in a stable project.
A few months ago it was ‘should_be’ and now it’s ‘should be()’, and now ‘specify’ is ‘it’? I thought the syntax was going to stabilize in v0.8.5?
Do you find yourself re-writing specs often to keep up with the changing framework?
(sorry for the multiple posts)
Geoffrey, that’s true that the syntax changed recently, now nobody forces you to upgrade your plugin and rewrite your specs. (I would recommend not to use the Gem but the plugin version of RSpec)
But, I agree that it could be an issue. Personally, I really think it’s worth it since the specs read even more easily and it also helps me writing better specs. But you might prefer to wait a bit before using RSpec on all your projects. By the way, RSpec is not the only way to do BDD ;)
Geoffrey -
We just switched over to 0.8.2 today from 0.7.5 and it was pretty painless. Everything was backwards compatible.
Matt A. -
I haven’t had a chance to check out the 0.9 version. I am not sure how I feel about the describe/it syntax yet. But I could probably learn to love it just like rspec and BDD