Living in the Tech Avalanche Generation

A practitioner’s introspective on technology
Archive for May 5th, 2009

If you take just one thing from BDD make it this…..

In a word, NAMING! If your going to take just one thing from BDD and apply it to your work I recommend you start with the way BDD practitioners name their tests. Typically you see test names like:

[Test]

public void make_customers_preferred_when_their_purchases_exceed_a_threshold()
{
    //…….test implementation
}

Even if your not using BDD I strongly suggest using the sentence like naming convention as it makes understanding what’s going on in a test library that much quicker and simpler. And, whilst your at it, why not check out BDD and give a framework like NBehave a try.

Share/Save/Bookmark

No comments

Creative Commons Attribution-ShareAlike 2.5 Australia
Creative Commons Attribution-ShareAlike 2.5 Australia