~/talk

Making JavaScript Tests Fast, Easy, and Friendly

Talkat CascadiaJS 2014 · 2014-07-31..08-01· [testing, javascript]
slides:none on file

Advocates building test infra up front, automating runs from the command line and wiring CI into GitHub and Slack, and using Mocha + Chai for readable assertions with Sinon.js to fake XHR and timers so suites run under 30 seconds (aim 5s) — example: replace setTimeout with fake timers and call clock.tick to simulate 5 minutes instantly. Provide hello world test skeletons and onboarding docs, measure slow tests (51ms warning, 300ms red, 2001ms timeout) and prefer fakes over network waits.

AI-written summary · about

  1. 0:00Introduction to testing
  2. 2:28Why tests feel painful
  3. 4:36Building test infrastructure
  4. 10:11Lowering barriers to entry
  5. 12:36Making tests blazingly fast
  6. 19:20Cultural shift for testing
  7. 23:52Bringing it all together
  8. 25:18Q&A and closing
~/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.