1. BDD
programming the happy way
by Leon Du
Friday, September 10, 2010
2. Who Am I
• Freelancer / Ruby on Rails developer
@guangzhou
• github.com/leondu
• twitter.com/leondu
• flickr.com/leondu
• leondu@gmail.com
Friday, September 10, 2010
3. Talk about
BDD, aka, Behavior Driven Development
• BDD is a second-generation, outside-in, pull-based, multiple-stakeholder, multiple-scale,
high-automation, agile methodology . It describes a cycle of interactions
with well-defined outputs, resulting in the delivery of working, tested software that matters.
--- from wikipedia.org
• a set of tools
Rspec
Cucumber
Webrat
Capybara
email-spec
Friday, September 10, 2010
4. Methodology
• Change the way of development
• Focus on behavior not only internal
structure
• Ease the difficulty of communication
Friday, September 10, 2010
5. BDD Cycle
Text
---from The RSpec Book
Friday, September 10, 2010
7. the Tools
• RSpec
for internal behaviors
• Cucumber
for system behaviors
• Webrat/Capybara/email-spec...
for common task steps
Friday, September 10, 2010