~/talk

Write fewer tests! Model-based testing in React

Talkat ReactConf AU 2020 · 2020-02-27..02-28· [testing, frontend-architecture]
slides:none on file

Proposes replacing manually written end‑to‑end tests with model‑based test generation using XState to model app states and transitions, wiring those abstract states to concrete assertions with React Testing Library and Jest, and swapping in Puppeteer for browser runs. Demonstrates a todo demo that auto‑generates 22 tests generated from the state graph, finds edge cases, and regenerates test suites instantly when the model changes, reducing maintenance and increasing user‑flow coverage.

AI-written summary · about

  1. 0:00The challenge of testing
  2. 2:57Testing hierarchies
  3. 4:07Model-based testing introduction
  4. 7:14State machines and puzzles
  5. 8:53Defining abstract models
  6. 12:20Implementing automated tests
  7. 18:02Puppeteer and demo
  8. 21:22Benefits of model-driven testing
  9. 26:32The future of model-driven dev
~/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.