• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
DevsMeetUp Freiburg: Behavior Driven Development with Behat/Mink
 

DevsMeetUp Freiburg: Behavior Driven Development with Behat/Mink

on

  • 1,467 views

Slides of my Introduction to Behavior Driven Development with Behat/Mink at DevsMeetUp Freiburg 06/2013

Slides of my Introduction to Behavior Driven Development with Behat/Mink at DevsMeetUp Freiburg 06/2013

Statistics

Views

Total Views
1,467
Views on SlideShare
1,387
Embed Views
80

Actions

Likes
1
Downloads
2
Comments
0

2 Embeds 80

http://lanyrd.com 41
https://twitter.com 39

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

CC Attribution-ShareAlike LicenseCC Attribution-ShareAlike License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    DevsMeetUp Freiburg: Behavior Driven Development with Behat/Mink DevsMeetUp Freiburg: Behavior Driven Development with Behat/Mink Presentation Transcript

    • BDD - Behavior Driven Development with Behat/Mink Developers MeetUp Freiburg 06/2013 Developers MeetUp Freiburg
    • Developers MeetUp Freiburg Steffen Müller /gebrüderheitz GmbH PHP Software Architect + Developer @t3node // www.t3node.com
    • Developers MeetUp Freiburg Case Study
    • Developers MeetUp Freiburg “Simple” order form
    • Developers MeetUp Freiburg Related functional tests (Selenium)
    • Developers MeetUp Freiburg How the complexity felt like Image by Kyle Lease CC BY-SA 2.0 http://www.flickr.com/photos/kl75214/
    • Developers MeetUp Freiburg Focus on requirements instead of high coverage
    • Developers MeetUp Freiburg Behavior Driven Development
    • Developers MeetUp Freiburg Behavior What?
    • Developers MeetUp Freiburg Analyze Concept Test Coding Linear progress Sketch inspired by J. B. Rainsberger: http://www.jbrains.ca/permalink/how-test-driven-development-works-and-more
    • Developers MeetUp Freiburg Analyze Concept Test Coding Continuous Iteration Short cycles Sketch inspired by J. B. Rainsberger: http://www.jbrains.ca/permalink/how-test-driven-development-works-and-more
    • Developers MeetUp Freiburg BDD Building the right things TDD Building the things right TDD or BDD?
    • Developers MeetUp Freiburg Communication Images by Alberto Sanchis (MisteryCat) http://misterycat.deviantart.com/ Stakeholder Developer
    • Developers MeetUp Freiburg Ubiquitous Language User Customer Unregistered user New customer Images by Alberto Sanchis (MisteryCat) http://misterycat.deviantart.com/
    • Developers MeetUp Freiburg Feature Description
    • Developers MeetUp Freiburg “As a [role] I want [feature] so that [benefit]” Feature Description
    • Developers MeetUp Freiburg “As a [role] I want [feature] so that [benefit]” User Story Feature Description
    • Developers MeetUp Freiburg “As a customer I need a shopping cart to check my selected products” Example Feature Description
    • Developers MeetUp Freiburg Scenarios / Use cases
    • Developers MeetUp Freiburg Scenario: [Use Case] Given... [Context] When... [Event] Then... [Result] Scenario
    • Developers MeetUp Freiburg Scenario: See selected products in the shopping cart Given I visit the FooBar shop And I add a “dishwasher” to my cart When I go to the shopping cart Then I should see a “dishwasher” Example Scenario
    • Developers MeetUp Freiburg Scenario: Find a product in the shopping basket Given I visit the FooBar shop And I select a “dishwasher” When I go to the shopping basket Then I should see a “dishwasher”gherkin Example Scenario
    • gherkin Clearly structured language Easy to understand Easy to rephrase Straightforward syntax Executable steps Developers MeetUp Freiburg
    • Developers MeetUp Freiburg Behat A php framework for testing business expectations
    • Developers MeetUp Freiburg Mink Acceptance test framework for web applications, written in PHP Behat A php framework for testing business expectations
    • Developers MeetUp Freiburg Live Demo
    • Resources BDD Introduction: http://dannorth.net/introducing-bdd/ Behat/Mink: http://behat.org/ bInit: kickstarter package for Behat: https://github.com/t3node/binit Wynne + Hellesøy (2012): “The Cucumber Book” Developers MeetUp Freiburg
    • Developers MeetUp Freiburg Thank You! If you need BDD + Behat/Mink support, send me a mail: Steffen Müller <bdd@t3node.com>