~/talk

Test Driven Development with AngularJS

Talkat Open Source Bridge 2013 · 2013-06-18..06-21· [angular, testing]
slides:none on file

Test driven development for AngularJS demonstrates concrete steps: start with a failing spec, write minimal code, iterate to grow behavior. Uses red-green-refactor, runs tests with Karma + Jasmine (auto-watch, Chrome), mocks with Canon, and shows controller vs service test patterns, scope injection, and provider-based service mocking. Example is a shopping cart exercised via incremental specs; a claimed migration from a 100,000-line Backbone app cuts source to about 30% of the original lines. Code lives as the NG Shopper app with step-by-step commits.

AI-written summary · about

  1. 0:00Start
  2. 3:14The Javascript Jabber Podcast
  3. 4:12Benefits of Test-Driven Development
  4. 4:23Benefits of Test-Driven Development Requirements in Code
  5. 11:26The Tdd Process
  6. 12:24Carbon Configuration
  7. 17:35Root Scope
  8. 18:13The Flow of the Tests
  9. 20:08Controller Constructor
  10. 25:06Create a Mock Cart
  11. 33:36Cart Tests
  12. 36:39Code Up a Test
  13. 37:37Inject Function
  14. 44:21Mock Http
  15. 47:50Final Questions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.