Testing Javascript with Jasmine
summary
Claims that Jasmine makes unit testing JavaScript trivial and shows it working across environments: standalone spec runner with a calculator example that goes from two failures to pass, jasmine‑jquery testing a lettering.js plugin, Evergreen gem wiring specs into Rails, CoffeeScript specs compiling and running, Node.js and rosie support, and headless CI swapping Selenium (≈4s) for capybara‑webkit (≈1s). Shows actual commands, folder layouts, and passing examples like “2 examples, 0 failures.” Jasmine evergreen gem coffeescript specs headless with capybara-webkit
AI-written summary · about
chapters (15)
- 0:00Introduction to jasmine
- 2:31Importance of JS unit testing
- 3:21Why test javascript
- 7:10Understanding jasmine
- 9:27Syntax and core features
- 14:21The TDD approach
- 16:17Vanilla JS testing
- 19:18Jasmine with ruby
- 21:02Testing with jquery
- 25:07Integration with rails
- 26:30Evergreen for automation
- 28:25CoffeeScript integration
- 31:18Headless CI testing
- 33:26Advanced tools and tips
- 36:37Conclusion and Q&A
related talks
18mStart using Jasmine. Write better JavaScript. Profit.
41mJavascript TDD for Rubyists
16mEnvjs and Jasmine: Headless tests FTW
49mFront End Testing Frontier
42mSurviving the JS Testing Tools Jungle
30mModern Web Testing: Going Beyond Selenium
47mSurviving the JS Testing Tools Jungle
37mCross browser unit testing JavaScript
