bdd and cucumber at barcampgz
DESCRIPTION
TRANSCRIPT
Who Am I
• Freelancer / Ruby on Rails developer @guangzhou
• github.com/leondu
• twitter.com/leondu
• flickr.com/leondu
Friday, September 10, 2010
Talk about
• 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 toolsRspecCucumberWebratCapybaraemail-spec
BDD, aka, Behavior Driven Development
Friday, September 10, 2010
Methodology
• Change the way of development
• Focus on behavior not only internal structure
• Ease the difficulty of communication
Friday, September 10, 2010
the Tools
• RSpecfor internal behaviors
• Cucumberfor system behaviors
• Webrat/Capybara/email-spec...for common task steps
Friday, September 10, 2010
CucumberCucumber
Features
Scenarios
Steps
http://cukes.info/Friday, September 10, 2010
BDD in other world
• JavaInstinct, JDave, JBehave, BDoc...http://java-sources.org/open-source/bdd
• .NetStoryQhttp://storyq.codeplex.com/
http://www.codeproject.com/KB/testing/bddintro.aspx
Friday, September 10, 2010