• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Cucumber And Bdd
 

Cucumber And Bdd

on

  • 3,707 views

Presentation on Behavior Driven Development and Cucumber for Rails developers given on 11/19/09 to Nashville Ruby on Rails meetup

Presentation on Behavior Driven Development and Cucumber for Rails developers given on 11/19/09 to Nashville Ruby on Rails meetup

Statistics

Views

Total Views
3,707
Views on SlideShare
3,607
Embed Views
100

Actions

Likes
0
Downloads
78
Comments
0

7 Embeds 100

http://dev.colearnr.com 49
http://www.joshcrews.com 31
http://joshcrews.com 12
http://www.slideshare.net 3
http://localhost 3
http://joshcrews.heroku.com 1
http://www.docshut.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

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

    Cucumber And Bdd Cucumber And Bdd Presentation Transcript

    • Cucumber and BDD
      • Nashville Ruby on Rails meetup November 19, 2009 Josh Crews
    • Behavior Driven Development (BDD)
      • first: describe what the software does
      • second: write the code to fulfill it
      • (behavior drives development)
    • BDD
      • Separate software design (one job)
      • from
      • writing code (a different job)
    • BDD - design example Given I am a bureau owner When I go to the homepage And I am logged in When I go to the speakers page And I click on "Add a speaker" And I fill in "speaker_name" with "Tad" And I press "Create profile" Then I should see "Tad" And I should see "Exclusive with Steve's speakers"
    • Cucumber
      • software for BDD
      • that takes plain english,
      • Ruby translations of plain english,
      • and runs integration test/stories against your application
    • Cucumber - step definition Given /^I am a bureau owner$/ do bureau = Factory(:bureau, :name => "Steve's speakers") @user = Factory(:user, :bureau => bureau)end
    • Cucumber’s sidekick: webrat
      • Cucumber reads the story
      • Webrat drives the browser
      When /^I go to (.+)$/ do |page_name| visit path_to(page_name) end end end
    • Cucumber benefits
      • Joy in programming
        • clears the mind
        • controls feature-drift
        • defines mini-milestones and git commits
    • Cucumber benefits
      • Leaves a trail of feature-still-works guarantees
      • Easy re-factor with confidence
    • Cucumber setup
      • http://cukes.info /
      • Railscasts #155, #159
    • Cucumber: other
      • Not a direct replacement for Test::Unit, Shoulda, Rspec
      • Cucumber can run integration tests on any application (different languages or frameworks)
    • Cucumber: Let’s use it!
      • End of presentation--now to the terminal.