BDD in PHP - Behat
Upcoming SlideShare
Loading in...5
×
 

BDD in PHP - Behat

on

  • 3,813 views

 

Statistics

Views

Total Views
3,813
Slideshare-icon Views on SlideShare
3,808
Embed Views
5

Actions

Likes
6
Downloads
45
Comments
0

4 Embeds 5

http://coderwall.com 2
http://us-w1.rockmelt.com 1
http://paper.li 1
https://twitter.com 1

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

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

    BDD in PHP - Behat BDD in PHP - Behat Presentation Transcript

    • BDD + PHP = BehatŁukasz Kużyński – wookieb@wookiebplhttp://wookieb.pl
    • What is BDD● BDD = Behavior Driven Development● technique for testing and develop software● agile software development technique● variant of TDD● bridge between programmer and client
    • What is BDD Is a state of mind ** http://blog.robustsoftware.co.uk/2009/11/what-is-bdd-behaviour-driven-design.html
    • BDD in PHP
    • How Behats tests looks like
    • Behat scenario schema
    • Behat scenario - example
    • Behat - FeatureContext
    • Behat – First run (with our code)
    • Same scenario with new values
    • Scenario Outline
    • Feature BackgroundExecuted before each scenario
    • Hooks
    • Mooore hooksBeforeSuite BeforeFeature BeforeaScenario BeforeStepAfterSuite AfterFeature AfterScenario AfterStep
    • Given, When, Then● No special meaning in code● Just a possibility to mark steps● Increase readability of FeatureContext
    • Extend FeatureContextSubstitute for „horizontal inheritance”
    • Useful contextshttps://github.com/Behat/CommonContexts
    • PitfallsFeature should be written for humans,not programmers http://elabs.se/blog/15-you-re-cuking-it-wrong
    • Can i write „unit tests” in BDD? It is possible but ... inefficient
    • Does BDD is a replacement for my standard tests Questions?
    • Łukasz Kużyński – wookieb@wookiebplhttp://wookieb.pl