Let's test the full widget tree!
summary
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
chapters (15)
- 0:00Introduction and speaker intro
- 4:21Why software testing matters
- 6:32What is full widget tree testing
- 10:42Pros and cons of full tree tests
- 12:10Getting started with setup
- 16:50First test and mocking dependencies
- 24:56Mocking API responses
- 25:39Testing error and retry scenarios
- 26:43Testing logged-in user flows
- 27:48Testing login screen interactions
- 30:35Debugging on device
- 32:43Common testing pitfalls
- 36:15Debugging tips and tricks
- 38:23Running tests on production
- 39:47Final advice and Q&A








