prdc10-Bdd-real-world
-
Upload
amir-barylko -
Category
Technology
-
view
539 -
download
0
description
Transcript of prdc10-Bdd-real-world
![Page 1: prdc10-Bdd-real-world](https://reader034.fdocuments.net/reader034/viewer/2022051816/54579350af79594e128b4916/html5/thumbnails/1.jpg)
![Page 2: prdc10-Bdd-real-world](https://reader034.fdocuments.net/reader034/viewer/2022051816/54579350af79594e128b4916/html5/thumbnails/2.jpg)
Amir Barylko - Real World BDD MavenThought Inc.
AMIR BARYLKOREAL WORLD
BDD DEVELOPMENTPRAIRIE DEV CON
REGINA 2010
![Page 3: prdc10-Bdd-real-world](https://reader034.fdocuments.net/reader034/viewer/2022051816/54579350af79594e128b4916/html5/thumbnails/3.jpg)
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!
![Page 4: prdc10-Bdd-real-world](https://reader034.fdocuments.net/reader034/viewer/2022051816/54579350af79594e128b4916/html5/thumbnails/4.jpg)
Amir Barylko - TDD Patterns MavenThought Inc.
BDD INTRO
![Page 5: prdc10-Bdd-real-world](https://reader034.fdocuments.net/reader034/viewer/2022051816/54579350af79594e128b4916/html5/thumbnails/5.jpg)
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
![Page 6: prdc10-Bdd-real-world](https://reader034.fdocuments.net/reader034/viewer/2022051816/54579350af79594e128b4916/html5/thumbnails/6.jpg)
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
![Page 7: prdc10-Bdd-real-world](https://reader034.fdocuments.net/reader034/viewer/2022051816/54579350af79594e128b4916/html5/thumbnails/7.jpg)
Amir Barylko - Real World BDD MavenThought Inc.
OUTSIDE IN APPROACH
![Page 8: prdc10-Bdd-real-world](https://reader034.fdocuments.net/reader034/viewer/2022051816/54579350af79594e128b4916/html5/thumbnails/8.jpg)
Amir Barylko - Real World BDD MavenThought Inc.
GHERKIN DSL
• Business readable DSL
• Flush out requirements
•Documentation
• Automated testing
• Used by Cucumber, SpecFlow, jBehave
![Page 9: prdc10-Bdd-real-world](https://reader034.fdocuments.net/reader034/viewer/2022051816/54579350af79594e128b4916/html5/thumbnails/9.jpg)
Amir Barylko - TDD Patterns MavenThought Inc.
BDD DEMO
![Page 10: prdc10-Bdd-real-world](https://reader034.fdocuments.net/reader034/viewer/2022051816/54579350af79594e128b4916/html5/thumbnails/10.jpg)
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
![Page 11: prdc10-Bdd-real-world](https://reader034.fdocuments.net/reader034/viewer/2022051816/54579350af79594e128b4916/html5/thumbnails/11.jpg)
Amir Barylko - TDD Patterns MavenThought Inc.
QUESTIONS?
![Page 12: prdc10-Bdd-real-world](https://reader034.fdocuments.net/reader034/viewer/2022051816/54579350af79594e128b4916/html5/thumbnails/12.jpg)
Amir Barylko - Real World BDD MavenThought Inc.
RESOURCES
• Contact me: [email protected], @abarylko
•Download: http://www.orthocoders.com/prairiedevcon
• Books: The rSpec book
![Page 13: prdc10-Bdd-real-world](https://reader034.fdocuments.net/reader034/viewer/2022051816/54579350af79594e128b4916/html5/thumbnails/13.jpg)
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
![Page 14: prdc10-Bdd-real-world](https://reader034.fdocuments.net/reader034/viewer/2022051816/54579350af79594e128b4916/html5/thumbnails/14.jpg)
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