Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Why do you say BDD if it is Cucumber?

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on. →

Why do you say BDD if it is Cucumber?

Tips and Trick for BDD

Avatar for Enrique Sánchez

Enrique Sánchez

April 04, 2014

More Decks by Enrique Sánchez

Other Decks in Programming

Transcript

  1. Why do you say BDD if it is Cucumber? Or

    How I Learned to Stop Worrying and Love the Behavior
  2. “ ” All of these tools are great… but, in

    the end, tools are tools. While RSpec and Cucumber are optimized for BDD, using them doesn’t automatically mean you’re doing BDD.
  3. “ ” 56% of all bugs can be traced to

    errors made during the requirement stage. Tom deMarco
  4. Define a feature Start with expectations Instead of setting state

    or user actions Keep Scenarios simple Split complicated workflows
  5. Abstraction Describe a feature, not edge cases Think in requirements

    Only BDD the happy path There’re controller/model/view tests
  6. Design, code, reuse Use the right tool for the right

    job What are you testing: web, mobile, service? Think in the language Ruby, Python, Java…
  7. BDD Club Rules The first rule is you have to

    talk The second stories should speak with the customers terminology The third rule stories are not specs The fourth rule keep the story goals as real values for the customer The fifth rule stories should not be exhaustive The sixth rule stories should not be too low level or high level The seventh rule stories should slice through multiple layers The eighth, if it’s your first day you have to talk and ask