Javascript / Browser Integration Testing with Ruby

3685edbe38aa07bdc348217aa619e9f7?s=47 Jessie Keck
February 13, 2013

Javascript / Browser Integration Testing with Ruby

The slides for my presentation at Code4Lib 2013 in Chicago.

3685edbe38aa07bdc348217aa619e9f7?s=128

Jessie Keck

February 13, 2013
Tweet

Transcript

  1. Javascript / Browser Integration Testing with Ruby Jessie Keck |

    Code4Lib 2013
  2. 2 The Problem

  3. 3 Normal RSpec Integration Test

  4. 4 Let’s See It

  5. 5 Mistakes Happen

  6. 6 Demo

  7. 7 The Some Solution(s)

  8. 8 Watir •  WATIR == WEB APPLICATION TESTING IN RUBY

    •  PRONOUNCED WATER •  BUILT ON WATIR-WEBDRIVER •  EASY TO TEST EXTERNAL SITES
  9. 9 Capybara •  YES, LIKE THE RODENT •  PREFERRED RSPEC/CUCUMBER

    DRIVER •  HAS THE ABILITY TO TEST RESPONSIVE DESIGN •  WEBKIT INTEGRATION AVAILABLE (TRUE HEADLESS)
  10. 10 A Tale of Two Syntaxes CAPYBARA WATIR

  11. 11 Demo

  12. 12 Gotchas

  13. 13 Other Potential Uses

  14. 14 Come Talk To Me! @jessiekeck github.com/jkeck jkeck@stanford.edu jkeck on

    IRC
  15. 15 Links •  http://watir.com/ •  https://github.com/jnicklas/capybara •  https://github.com/thoughtbot/capybara-webkit •  https://github.com/jkeck/c4l13_javascript_testing