javascript / browser integration testing with ruby

Post on 01-Jan-2017

253 Views

Category:

Documents

2 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Javascript / Browser Integration Testing with Ruby

Jessie Keck | Code4Lib 2013

2

The Problem

3

Normal RSpec Integration Test

4

Let’s See It

5

Mistakes Happen

6

Demo

7

The Some Solution(s)

8

Watir

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

9

Capybara

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

10

A Tale of Two Syntaxes

CAPYBARA WATIR

11

Demo

12

Gotchas

13

Other Potential Uses

14

Come Talk To Me!

@jessiekeck github.com/jkeck

jkeck@stanford.edu jkeck on IRC

15

Links

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

top related