0
Creating         Cucumbers        collaboration   language        discussion      value        customers       acceptanceE...
Cucumber Feature             Feature: Be awesome          Not               Narrative                executedExample of   ...
Cucumber Feature             Feature: Be awesome          Not               Narrative                executedExample of   ...
PlaintextRuby               Plaintext       Plaintext        Ruby        Ruby
PlaintextStep   Given we like cukes              Ruby               Plaintext                     Plaintext               ...
Plaintext  Step      Given we like cukes                   Ruby               Plaintext                          Plaintext...
Plaintext  Step      Given we like cukes                                               regexp match                   Ruby...
Cucumber  Style?
Global regular-expressionsUnmaintainable                                      Flexibilitylarge step-definition files        ...
Workshop:“The writing’s on the wall”                 5mins per                  example
Gherkin writing  workshop                  20mins
Go - Weiqi - Baduk
Feature The Rules of GoIn order to prevent invalid movesAs a GoVsGO website memberI want the rules of Go enforced.
Go RulesCaptureAfter playing his stone a player removes from the board any stones of hisopponents colour that have no libe...
How tasty is your  Cucumber? yum
Does not dictate        Not Exhaustive, key examplesintegration testing             (Maths book)                      Lear...
The Art of CucumberSeptember 27thSkillsmatters   http://theartofcucumber.eventbrite.com
Thanks                                   Its been                                  emotional        Joseph Wilk           ...
Spa2011
Spa2011
Upcoming SlideShare
Loading in...5
×

Spa2011

682

Published on

Workshop run at SPA2011.

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
682
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
11
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Spa2011"

  1. 1. Creating Cucumbers collaboration language discussion value customers acceptanceElise JosephHuard Wilk
  2. 2. Cucumber Feature Feature: Be awesome Not Narrative executedExample of Scenario: titlebehaviour which rocks Given <some context> And <yet more context> When <some action> Steps And <more actions> Then <some outcome> And <more outcomes>
  3. 3. Cucumber Feature Feature: Be awesome Not Narrative executedExample of Scenario: titlebehaviour which rocks Given <some context> And <yet more context> When <some action> Steps And <more actions> Then <some outcome> And <more outcomes>
  4. 4. PlaintextRuby Plaintext Plaintext Ruby Ruby
  5. 5. PlaintextStep Given we like cukes Ruby Plaintext Plaintext Ruby Ruby
  6. 6. Plaintext Step Given we like cukes Ruby Plaintext Plaintext Step Given /^we like (.*)$/i do |fruit|definition fruit.should == cukes end Ruby Ruby
  7. 7. Plaintext Step Given we like cukes regexp match Ruby Plaintext Plaintext Step Given /^we like (.*)$/i do |fruit|definition fruit.should == cukes end Ruby Ruby
  8. 8. Cucumber Style?
  9. 9. Global regular-expressionsUnmaintainable Flexibilitylarge step-definition files Problems Complex regular-expressions Coverage vs. Speed tradeoffs are hard to read
  10. 10. Workshop:“The writing’s on the wall” 5mins per example
  11. 11. Gherkin writing workshop 20mins
  12. 12. Go - Weiqi - Baduk
  13. 13. Feature The Rules of GoIn order to prevent invalid movesAs a GoVsGO website memberI want the rules of Go enforced.
  14. 14. Go RulesCaptureAfter playing his stone a player removes from the board any stones of hisopponents colour that have no liberties.SuicideA player cannot place a stone that would result in the capture of their ownstonesKoOne may not play in such a way as to recreate the board position following onesprevious moveEndingThe game ends when both players have passed consecutively
  15. 15. How tasty is your Cucumber? yum
  16. 16. Does not dictate Not Exhaustive, key examplesintegration testing (Maths book) Learnings Allow features Why? to breathe
  17. 17. The Art of CucumberSeptember 27thSkillsmatters http://theartofcucumber.eventbrite.com
  18. 18. Thanks Its been emotional Joseph Wilk Elise Huardhttp://blog.josephwilk.net http://jabberwocky.eu @josephwilk @elise_huard
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×