~/talk

Writing better tests with less work

Talkat Fluttercon USA 2025 · 2025-06-25..06-26· [flutter, testing]
slides:none on file

Argues that most value of tests is catching future regressions and that Flutter has “more tests than implementation,” so tests must be cheaper and clearer. Recommends tight, narrative tests that extract boring details into helpers, test at bindings / stable interfaces (fake HTTP responses feeding the real model), and control time with fake_async plus an awaitFakeAsync helper. Shows Zulip Flutter examples, advises widget finders over find-by-type, and suggests using package flutter_checks for typed assertions so tests run faster, fail less, and are easier to update.

AI-written summary · about

  1. 0:00Introduction
  2. 1:47Why we write tests
  3. 3:13Reducing test costs
  4. 4:57Clear test narratives
  5. 9:18Simplify tests
  6. 13:34Zulip app examples
  7. 17:10Right test layer
  8. 22:07Stable test interfaces
  9. 24:58UI tests with real code
  10. 27:45Stable UI interfaces
  11. 31:13Fake async time
  12. 34:42Typed assertions with package:checks
  13. 36:52Summary & Q&A
~/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.