BDD and Cucumber at barcampGZ
Upcoming SlideShare
Loading in...5
×
 

BDD and Cucumber at barcampGZ

on

  • 1,442 views

 

Statistics

Views

Total Views
1,442
Views on SlideShare
1,442
Embed Views
0

Actions

Likes
2
Downloads
24
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

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 and Cucumber at barcampGZ BDD and Cucumber at barcampGZ Presentation Transcript

  • BDD programming the happy way by Leon Du Friday, September 10, 2010
  • Who Am I • Freelancer / Ruby on Rails developer @guangzhou • github.com/leondu • twitter.com/leondu • flickr.com/leondu • leondu@gmail.com Friday, September 10, 2010
  • Talk about BDD, aka, Behavior Driven Development • BDD is a second-generation, outside-in, pull-based, multiple-stakeholder, multiple-scale, high-automation, agile methodology . It describes a cycle of interactions with well-defined outputs, resulting in the delivery of working, tested software that matters. --- from wikipedia.org • a set of tools Rspec Cucumber Webrat Capybara email-spec Friday, September 10, 2010
  • Methodology • Change the way of development • Focus on behavior not only internal structure • Ease the difficulty of communication Friday, September 10, 2010
  • BDD Cycle Text ---from The RSpec Book Friday, September 10, 2010
  • ---from The RSpec Book Friday, September 10, 2010
  • the Tools • RSpec for internal behaviors • Cucumber for system behaviors • Webrat/Capybara/email-spec... for common task steps Friday, September 10, 2010
  • Cucumber Friday, September 10, 2010
  • Cucumber Cucumber Features Scenarios Steps http://cukes.info/ Friday, September 10, 2010
  • Feature • Plain text • Focus on behavior Friday, September 10, 2010
  • Scenario • Write Scenario with Given/When/Then Friday, September 10, 2010
  • Step Step definition and is translated to below: Friday, September 10, 2010
  • Advance topics Preparing data with Examples Friday, September 10, 2010
  • Advance topics Testing email with email-spec email steps Friday, September 10, 2010
  • BDD in other world • Java Instinct, JDave, JBehave, BDoc... http://java-sources.org/open-source/bdd • .Net StoryQ http://storyq.codeplex.com/ http://www.codeproject.com/KB/testing/bddintro.aspx Friday, September 10, 2010
  • Special Thanks To Rain Chen hirainchen@gmail.com Friday, September 10, 2010
  • Questions? Friday, September 10, 2010