~/talk

Let's test the full widget tree!

Talkat droidcon London 2022 · 2022-10-27..10-28· [testing, flutter]
links:none on file
slides:none on file

Full widget tree testing for Flutter runs the whole app in a test, mocking network at the HTTP wrapper so tests exercise routing, state and UI up to the network layer while keeping runs fast. Setup requires registering dependencies with get_it and stubbing DIO get/post calls via a mock server response manager that maps URLs to JSON files (example uses the free gorest API). Examples: error screen, login + add-post flow, CI and production “post of the day” health checks.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 4:21Why software testing matters
  3. 6:32What is full widget tree testing
  4. 10:42Pros and cons of full tree tests
  5. 12:10Getting started with setup
  6. 16:50First test and mocking dependencies
  7. 24:56Mocking API responses
  8. 25:39Testing error and retry scenarios
  9. 26:43Testing logged-in user flows
  10. 27:48Testing login screen interactions
  11. 30:35Debugging on device
  12. 32:43Common testing pitfalls
  13. 36:15Debugging tips and tricks
  14. 38:23Running tests on production
  15. 39:47Final advice and 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.