Upload
amir-barylko
View
536
Download
0
Embed Size (px)
DESCRIPTION
Citation preview
Amir Barylko - Real World BDD MavenThought Inc.
AMIR BARYLKOREAL WORLD
BDD DEVELOPMENTPRAIRIE DEV CON
REGINA 2010
Amir Barylko - Real World BDD MavenThought Inc.
WHO AM I?
• Architect
•Developer
•Mentor
• Great cook
• The one who’s entertaining you for the next hour!
Amir Barylko - TDD Patterns MavenThought Inc.
BDD INTRO
Amir Barylko - Real World BDD MavenThought Inc.
WHY TRADITIONALPROJECTS FAIL?
•Delivering late or over budget
•Delivering the wrong thing
• Unstable in production
• Costly to maintain
Amir Barylko - Real World BDD MavenThought Inc.
BDD PRINCIPLES
• Behaviour Driven development is about implementing an application by describing its behaviour from the perspective of the stakeholder
• Enough is Enough
•Deliver stakeholder value
• It’s all behaviour
Amir Barylko - Real World BDD MavenThought Inc.
OUTSIDE IN APPROACH
Amir Barylko - Real World BDD MavenThought Inc.
GHERKIN DSL
• Business readable DSL
• Flush out requirements
•Documentation
• Automated testing
• Used by Cucumber, SpecFlow, jBehave
Amir Barylko - TDD Patterns MavenThought Inc.
BDD DEMO
Amir Barylko - Real World BDD MavenThought Inc.
ADD MOVIE FEATURE
• Feature: Addition
• In order to make my library grow
• As a registered user
• I want to add movies to the library
• Scenario: Add a movie
• Given I'm on the home page
• When I follow Add Media
• And I enter Young Frankestein in the title
• And I click Submit
• Then I should see Young Frankestein in the listing
Amir Barylko - TDD Patterns MavenThought Inc.
QUESTIONS?
Amir Barylko - Real World BDD MavenThought Inc.
RESOURCES
• Contact me: [email protected], @abarylko
•Download: http://www.orthocoders.com/prairiedevcon
• Books: The rSpec book
Amir Barylko - Real World BDD MavenThought Inc.
RESOURCES II
• SpecFLow: http://www.specflow.org
• Gallio & MbUnit: http://www.gallio.org
•MavenThought Testing: http://maventcommons.codeplex.com
• Rhino Mocks: http://www.ayende.com
•Watin: http://watin.sourceforge.net
• ASP .NET MVC: http://www.asp.net/mvc
Amir Barylko - Real World BDD MavenThought Inc.
RESOURCES III
•NUnit: http://www.nunit.org
• SharpTestEx: http://sharptestex.codeplex.com
•NHaml: http://code.google.com/p/nhaml
• Binsor: http://ayende.com/Blog/archive/2007/10/25/Binsor-2.0.aspx