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.
No comments








