Capybara + RSpec - lightweight acceptance testing

5,607 views

Published on

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.

Published in: Technology, Sports
1 Comment
2 Likes
Statistics
Notes
No Downloads
Views
Total views
5,607
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
1
Likes
2
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Capybara + RSpec - lightweight acceptance testing

    1. 1. Capybara & RSpecA lightweight alternative to Cucumber
    2. 2. HELLO THERE I’m Patrick RobertsonFind me online at http://p-rob.me Follow me!@patricksroberts on twitter.
    3. 3. There is a Divide [1]
    4. 4. We are a testing cult in public [2]
    5. 5. But we sin in privateLapsed suitesIntentionally skipped featuresCompletely un-DRY test code
    6. 6. How does this happen? [3] Cucumber isn’t snake oil
    7. 7. Gherkin isnʼt for you [4]
    8. 8. Capybara isn’t for them
    9. 9. You need to make a callIs collaboration worth the upkeep?Can your team work directly withCapybara?
    10. 10. [5]
    11. 11. Helper Configuration
    12. 12. Basic Usage
    13. 13. Pour some sugar on it
    14. 14. Sugary Output--format documentation
    15. 15. A thin DSL for RSpec
    16. 16. Before/After
    17. 17. Extract Helper Methods
    18. 18. Thanks!
    19. 19. 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/

    ×