Behavior-driven development catches on

1 comment | I like it!
June 3, 2009, 08:34 AM —  InfoWorld — 

Behavior-driven development (BDD), which helps users get more involved in describing an application's intended behavior, is becoming popular with developers, who are now latching on to tools that fit into the BDD vein. It's particularly relevant to agile application development approaches.

In BDD, application stakeholders as well, analysts, and testers are brought together to determine requirements. BDD features tests written in plain text. "Test-driven development, BDD, executable specifications -- all of that is becoming more popular and is the future," says agile development coach Warren Elliott.

How behavior-driven development works
BDD is an evolution of test-driven development that brings the customers into the picture, says Aslak Hellesoy, creator of the Cucumber BDD tool and a consultant at Norway's Bekk Consulting. BDD lets the customer write tests that everyone understands with assistance from developers and testers.

The BDD approach holds that an idea for a requirement can be turned into an implemented, tested, production-ready code as long as the requirement is specific enough that everyone knows what is going on, says developer Dan North of ThoughtWorks, who is credited with coining the term "BDD" around 2003. To do this, a way to describe the requirement is needed so that everyone from businesspeople to analysts, developers, and testers have a common understanding of the scope of the work. Parties agree on a common definition of "done."

In the BDD approach, a BDD "story" is developed, featuring a description of a requirement, a business benefit, and criteria for completeness. A story could be developed, for example, for an application for withdrawing cash from an ATM.

"BDD is about helping the customers, the stakeholders, have this slightly structured conversation with the delivery team," North says. "[BDD is] allowing people to write better software," he says, adding that it enables a focus on just delivering features.

Hellesoy advises against using BDD in a traditional, waterfall method of application development. "I would only use it on an agile project," he says, because BDD treats the specification as a living, changing document. "You can't possibly come up with it up front," he says, which methods such as waterfall require.

Tools leveraging BDD concepts include Cucumber, RSpec, JBehave, and FitNesse. They focus on different aspects of application development and testing, so can be complementary.

Sign up for ITworld's Daily newsletter
Follow ITworld on Twitter @IT_world

I like it!
Close

On Twitter now

programming

Powered by Twitter
You are logged in | Sign out
Sign in and post to Twitter

What are you thinking?

Cancel Tweet sent

On Twitter now

Comments

Cucumber

Hi,

I am currently looking for a candidate with experience with Cucumber for a company in Atlanta. It is a bit challenging to find a candidate since this is such a new technology. Can you help point me in a direction? I was hoping to speak with a teacher that recently taught a class on the subject in hopes that he/she could let her top students know about the opportunity. Any advice that you could give me would be very much appreciated. rlenz@apexsysemsinc.com

Thanks,

Becky
| reply
peer-to-peer

jfruh
Apple syncing patent can't come soon enough

pasmith
New Twitter features borrow from 3rd party clients

Esther Schindler
Open Source Changes the Software Acquisition Process

mikelgan
How to set up continuous podcast play on the new iTunes

David Strom
Five important Windows 7 mobility features

sjvn
Guard your Wi-Fi for your own sake                        

Sandra Henry-Stocker
Grepping on Whole Words

 

Sidekick: The Good News & the Bad News
Either way you look at it Microsoft Data Center management did not follow standards or best practices in this failure. In which case it makes me wonder more about the outsourcing of corporate data much less personal data.
- mburton325

Join the conversation here

The Daily Tip

The Daily TipQuick, practical advice for IT pros. Made fresh daily.

Hot tips:

Want to cash in on your IT savvy? Send your tip to tips@itworld.com. If we post it, we'll send you a $25 Amazon e-gift card.

Newsletters

Subscribe to ITWORLD TODAY and receive the latest IT news and analysis.

I would like to receive offers via email from ITworld partners.
By clicking submit you agree to the terms and conditions outlined in ITworld's privacy policy.
Featured Sponsor

AISO founders envisioned a Web hosting company that was environmentally friendly. While the company employed energy-efficient innovations like solar panels, its infrastructure produced unacceptable power and cooling requirements. Find out how AISO leveraged AMD technology to overcome their challenge in this case study white paper.

In this whitepaper, Scalar explores the opportunity to change the landscape with respect to mission critical databases built around Oracle. Leveraging technologies such as Linux, high-end commodity processing power and Oracle RAC technology to architect, design, build and maintain database infrastructure that delivers maximum availability, reliability and performance at a fraction of traditional cost.

On a typical day, weather.com, the Web site for The Weather Channel in Atlanta, serves up between 15 million and 20 million page views. But in September 2004, when back-to-back hurricanes ransacked Florida, the peak traffic on one day more than tripled: over 70 million page views by more than 7 million unique visitors. Read the full success story now.

Marketplace