~/talk

Component-Driven Development & Visual Test Coverage

Talkat Assert(js) 2019 · on Thursday, 2019-09-12· [testing]
slides:none on file

Argues that building UI components in isolation yields test coverage for free by pairing Storybook stories with visual regression; shows a working service called Chromatic that snapshots stories and runs 2,000 tests in 45 seconds across browsers and viewports, highlighting real speed and determinism gains. Demonstrates a prototype story coverage tool that maps unexercised component lines to missing stories so teams can see what states to add. Shows concrete tooling, a performance metric, and a prototype that actually updates when stories change.

AI-written summary · about

  1. 0:00Start
  2. 1:45Nobody wants to write tests.
  3. 2:37Nobody knows what to test.
  4. 3:04Nobody else understands tests.
  5. 3:56Ul code is really complex.
  6. 5:51Every UI test is an integration test.
  7. 7:28What's a component?
  8. 10:04We decompose each screen into components.
  9. 10:53Build out components in isolation
  10. 11:41Combine into higher-level components.
  11. 13:06Every component state is called a story.
  12. 13:25Each story is a simple JS function.
  13. 13:59Modern front-end engineers depend on it.
  14. 14:27Twitter design overhauled with Storybook.
  15. 14:40Slack UI built with Storybook.
  16. 14:55Teams write 1000's of stories.
  17. 15:24Stories are crafted.
  18. 16:00Minor tweaks can cause major regressions.
  19. 16:27But every spec is testable!
  20. 18:04Changes summarized on each commit.
  21. 18:22Test 1000's of stories in minutes.
~/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.