the front end testing frontier - rubyconf 2010
DESCRIPTION
While most Ruby developers are very familiar with testing their code, front end and JavaScript testing is still a new frontier for many. This talk will show you how to easily write and run JavaScript integration tests with Capybara and Cucumber, and unit tests with Evergreen and Jasmine. The goal is to inspire you to get started with frontend testing, and point you in the right direction to go do it!TRANSCRIPT
THE
FRONT END TESTING FRONTIER
CJ Kihlbom, Elabs – @cjkihlbomJonas Nicklas, Elabs – @jncoward
WE LOVE TESTING
WE LOVE TESTING…RUBY CODE
FRONT END TESTING IS NEGLECTED
FRONT END TESTING ISHARD
INTEGRATION TESTING
CUCUMBER
STEAK
CAPYBARA
WEBRAT REPLACEMENT
DRIVER AGNOSTIC
DRIVER GOOD BAD
rack-test
Selenium
HTMLUnitCelerity/Culerity/Akephalos
Envjs
Fast, simple No JavaScript
Real browser, JavaScript & CSS Slow, requires GUI
Headless, good JavaScript support Pretty slow
Headless, faster than HTMLUnit
JavaScript and CSS not 100%
DRIVER AGNOSTIC
@javascript
UNIT TESTING
EVERGREEN
JASMINE
OUT OF THE BOX EXPERIENCE
TEMPLATES
STATIC TEMPLATE
EVERGREEN
TEMPLATE FRAGMENT
DEMO!
FRONT END TESTING IS NOT HARD
RESOURCES
CJ Kihlbom, Elabs – @cjkihlbomJonas Nicklas, Elabs – @jncoward
http://github.com/elabs/front_end_testinghttp://github.com/jnicklas/capybarahttp://github.com/jnicklas/evergreenhttp://github.com/pivotal/jasmine