Start using Jasmine. Write better JavaScript. Profit.
summary
Argues that JavaScript needs the same testing craftsmanship as Ruby and shows concrete tooling and results: adds Jasmine to Rails via a jasmine-rails gem, uses jasmine-jquery and headless WebKit runners, demonstrates turning anonymous event handlers into named one-line functions that are easy to spec, wires CoffeeScript into the asset pipeline for test code, and ships a TryJasmine web app — all working end-to-end so specs actually run in CI and browsers.
AI-written summary · about
chapters (6)
- 0:00Intro
- 2:56consequences
- 5:23avoiding front-end work
- 8:07codes!
- 12:28how might we spec event binding?
- 14:57Taking the next step
related talks
40mTesting Javascript with Jasmine
41mJavascript TDD for Rubyists
16mEnvjs and Jasmine: Headless tests FTW
35mFrom RSpec to Jest: JavaScript testing for Rails devs
30mModern Web Testing: Going Beyond Selenium
29mBackbone.js, Jasmine and Rails: The Lust Story
35mFrom RSpec to Jest: JavaScript testing for Rails devs
29mBackbone.js, Jasmine and Rails: The Lust Story
