• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Capybara + RSpec - lightweight acceptance testing
 

Capybara + RSpec - lightweight acceptance testing

on

  • 5,187 views

Sometimes Cucumber isn't the right tool for acceptance testing in Rails. Capybara + RSpec makes for a lightweight and efficient testing framework when collaboration with non-technical stakeholders ...

Sometimes Cucumber isn't the right tool for acceptance testing in Rails. Capybara + RSpec makes for a lightweight and efficient testing framework when collaboration with non-technical stakeholders isn't an aim of your testing suite.

Statistics

Views

Total Views
5,187
Views on SlideShare
5,187
Embed Views
0

Actions

Likes
2
Downloads
0
Comments
1

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

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

11 of 1 previous next

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

Capybara + RSpec - lightweight acceptance testing Capybara + RSpec - lightweight acceptance testing Presentation Transcript

  • Capybara & RSpecA lightweight alternative to Cucumber
  • HELLO THERE I’m Patrick RobertsonFind me online at http://p-rob.me Follow me!@patricksroberts on twitter.
  • There is a Divide [1]
  • We are a testing cult in public [2]
  • But we sin in privateLapsed suitesIntentionally skipped featuresCompletely un-DRY test code
  • How does this happen? [3] Cucumber isn’t snake oil
  • Gherkin isnʼt for you [4]
  • Capybara isn’t for them
  • You need to make a callIs collaboration worth the upkeep?Can your team work directly withCapybara?
  • [5]
  • Helper Configuration
  • Basic Usage
  • Pour some sugar on it
  • Sugary Output--format documentation
  • A thin DSL for RSpec
  • Before/After
  • Extract Helper Methods
  • Thanks!
  • Photo Credits[1] http://www.flickr.com/photos/osucommons/4904885912/ [2] http://www.flickr.com/photos/foxtongue/16097376/[3] http://www.flickr.com/photos/stefan1024/3850486016/ [4] http://www.flickr.com/photos/e_hmm/3722494692/[5] http://www.flickr.com/photos/opacity/4012611345/