Solving: How to choose between BDD and unit tests? #GivenWhenThenWithStyle

During the last two weeks, members of our community posted ideas on the topic of choosing between developer-oriented unit tests and business-facing given-when-then specifications, when some feature can in theory be covered by both.

As a special treat for this challenge, instead of me posting the usual summary and my ideas, the phenomenal Dave Farley responds with a video.

Dave is the author of the incredibly influential Continuous Delivery book, and recently started posting weekly video tips on improving software delivery. I strongly suggest signing up for his channel! Watch Dave’s response to our challenge below, and subscribe to his Continuous Delivery YouTube channel directly on YouTube.

Dave posted an excellent response, illustrating it with rulers, tape measures, fence posts and even a few expletives that had to be bleeped out. He presents a compelling argument on why duplication between unit tests and BDD specs is sometimes perfectly fine, and you do not have to choose between the two at all. To echo Dave’s key message, “Test all the F***ing time!”.

Stay up to date with all the tips and tricks and follow SpecFlow on Twitter or LinkedIn.

PS: … and don’t forget to share the challenge with your friends and team members by clicking on one of the social icons below 👇