~/talk

How not to test

TalkinRussianat FrontTalks 2016 · 2016-09-17..09-18· [testing]
links:none on file
slides:none on file

Explains why many frontend unit tests are useless because they assert implementation details or tautologies rather than observable behavior. Gives three anti-patterns—testing static values, creating “test twins” that mirror implementation, and overly complex full DOM UI tests—and recommends testing observable outcomes (e.g., presence of a Twitter link), using component APIs or lightweight integration tests, extracting debounce into a synchronous wrapper, and focusing on meaningful tests rather than coverage metrics (one concrete fix reduced a 4-day refactor to 1 day).

AI-written summary · about

  1. 0:00Start
  2. 4:19Harmful tests
  3. 4:41Testing statics
  4. 25:19Asynchronous code
~/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.