BDD - Behavior Driven Development

550 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
550
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • BDD - Behavior Driven Development

    1. 1. Welcome to the World of Behavior Driven Development railando .com Gain%%Speed%with%%Ruby%on% RailsBerlin, Sep 21, 2012
    2. 2. Welcome to the World of Behavior Driven Development railando .com Gain%%Speed%with%%Ruby%on% RailsBerlin, Sep 21, 2012
    3. 3. What to expect in this presentation? railando .com Gain%%Speed%with%%Ruby%on% RailsBerlin, Sep 21, 2012
    4. 4. What to expect in this presentation? railando .com Gain%%Speed%with%%Ruby%on% RailsBerlin, Sep 21, 2012
    5. 5. What to expect in this presentation? •Understand what BDD is •Understand its benefits • as well as its drawbacks. •Inspiration to your own thoughts    •Hear about practical experience •Know where to get help: railando .com Gain%%Speed%with%%Ruby%on% RailsBerlin, Sep 21, 2012
    6. 6. Challenge question :-) What is the worst thing that can happen to asoftware development project ?
    7. 7. What to do about it?Align ideas of business, development and test Fully involve all three Embrace change Use the best tools and processes available
    8. 8. What is BDD? One concrete incarnation of Agile developmentThe next logical step to Test Driven Development Acceptance Test is central Battle-proven toolset available BDD makes business (users) love to contribute!
    9. 9. cucumber Central to BDDEnables all stakeholders to write/approve specsBuilt on a simple paradigm: Given - When - Then Enables (acceptance) test automation of application-level specs cucumber makes business (users) love to contribute!
    10. 10. A simple example Given I have items in my cartAnd I have entered a German shipping address But none of my items is tax-exempt When I click “checkout” Then I see all my items with individual price And I see a “total” line And I see a VAT line stating 19 % And I see a grand total of 1.19 * total But I see no “sales tax” line
    11. 11. Automate it! :-) We write specs in natural language “Step Definitions” map English to code Use the power of regular expressionsEach Given, When and Then clause causes some code to be executedWrite Step Definitions in Ruby, Perl, Shell Scripts, Java, Javascript, .NET, etc.
    12. 12. A real life example See Demo
    13. 13. A real life example See Demo
    14. 14. Our experience We used BDD in Enterprise projects (e.g. large Swiss telecoms carrier) as well as startup environments Business departments / users are happy to havefinally found a way how they can really contribute Acceptance test greatly simplified Additional work in the beginning for specs More than compensated, dramatically reduced rework
    15. 15. What now? Try it !
    16. 16. Finally Care for help? consulting? support? training?Don’t forget to give us a call ;-) bernd.blume@railando.com railando .com Gain%%Speed%with%%Ruby%on% Rails

    ×