14

prdc10-Bdd-real-world

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: prdc10-Bdd-real-world
Page 2: prdc10-Bdd-real-world

Amir Barylko - Real World BDD MavenThought Inc.

AMIR BARYLKOREAL WORLD

BDD DEVELOPMENTPRAIRIE DEV CON

REGINA 2010

Page 3: prdc10-Bdd-real-world

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

Amir Barylko - TDD Patterns MavenThought Inc.

BDD INTRO

Page 5: prdc10-Bdd-real-world

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

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

Amir Barylko - Real World BDD MavenThought Inc.

OUTSIDE IN APPROACH

Page 8: prdc10-Bdd-real-world

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

Amir Barylko - TDD Patterns MavenThought Inc.

BDD DEMO

Page 10: prdc10-Bdd-real-world

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

Amir Barylko - TDD Patterns MavenThought Inc.

QUESTIONS?

Page 12: prdc10-Bdd-real-world

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

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