Slide 1

Slide 1 text

Javascript / Browser Integration Testing with Ruby Jessie Keck | Code4Lib 2013

Slide 2

Slide 2 text

2 The Problem

Slide 3

Slide 3 text

3 Normal RSpec Integration Test

Slide 4

Slide 4 text

4 Let’s See It

Slide 5

Slide 5 text

5 Mistakes Happen

Slide 6

Slide 6 text

6 Demo

Slide 7

Slide 7 text

7 The Some Solution(s)

Slide 8

Slide 8 text

8 Watir •  WATIR == WEB APPLICATION TESTING IN RUBY •  PRONOUNCED WATER •  BUILT ON WATIR-WEBDRIVER •  EASY TO TEST EXTERNAL SITES

Slide 9

Slide 9 text

9 Capybara •  YES, LIKE THE RODENT •  PREFERRED RSPEC/CUCUMBER DRIVER •  HAS THE ABILITY TO TEST RESPONSIVE DESIGN •  WEBKIT INTEGRATION AVAILABLE (TRUE HEADLESS)

Slide 10

Slide 10 text

10 A Tale of Two Syntaxes CAPYBARA WATIR

Slide 11

Slide 11 text

11 Demo

Slide 12

Slide 12 text

12 Gotchas

Slide 13

Slide 13 text

13 Other Potential Uses

Slide 14

Slide 14 text

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

Slide 15

Slide 15 text

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