Flipping the Testing Pyramid
summary
Argues for flipping the testing pyramid so widget tests become the central strategy, claiming they can cover up to 80% of a Flutter codebase and run fast (example full‑app widget test completes in about a second). Shows how to pump the whole app with fakes for ports, use the Robot pattern to collapse verbose tests into a few readable calls, and demonstrates the Spot Timeline/Spot package that produces local HTML timelines, chained selectors, annotated screenshots and faster, more actionable failure messages. Recommends avoiding brittle end‑to‑end emulators and keeping tests isolated and dependency‑injected.
AI-written summary · about
chapters (6)
- 0:00Testing pyramid introduction
- 7:02Flutter testing pyramid
- 13:07Full widget testing
- 22:20Testing robots for widgets
- 27:10Spot testing package
- 37:49Q&A
related talks
41mThe art of Flutter testing
41mWriting better tests with less work
51mAll About Testing Flutter
38mThe Testing Pyramid – What does it mean for Android?
24mMastering the mobile testing pyramid
32mexpect(isTestingInFlutterEasy, isTrue);
44mEfficient testing UI Android apps by example
47mEradicate Flaky Tests
