Read my latest article: Was away on vacation (posted Sun, 11 May 2008 22:33:00 GMT)

BDD is still kinky 4

Posted by Robby Russell Tue, 10 Apr 2007 21:51:00 GMT

I still believe that Behavior-Driven Development is kinkier than Test-Driven Development...

Subscribe to my RSS feed Enjoying the content? Be sure to subscribe to my RSS feed.
Comments

Leave a response

  1. Avatar
    Matt A Wed, 11 Apr 2007 06:22:24 GMT

    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!

  2. Avatar
    topfunky Wed, 11 Apr 2007 14:55:49 GMT

    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?

  3. Avatar
    Matt A Wed, 11 Apr 2007 15:45:51 GMT

    (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 ;)

  4. Avatar
    Graeme Nelson Wed, 11 Apr 2007 17:50:17 GMT

    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

Share your thoughts... (really...I want to hear them)

Comments