All About Testing Flutter
summary
Provides a concrete testing roadmap for Flutter apps: aim for ~70% unit, 20% widget, 10% integration tests. Uses Dart test API with expect/matchers for unit tests, flutter_test and WidgetTester (pump/find) for widget tests, and flutter_driver + test_core for end-to-end on devices; recommends constructor injection for mockable dependencies and running tests with flutter test and flutter drive.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 1:30Why test and automate
- 8:20Flutter test types
- 22:18Unit testing
- 28:42Widget testing
- 36:23Managing test costs
- 44:35Q&A
- 48:23Q&A reports
- 49:09Q&A Mokumoku
- 50:15Summary
related talks
41mThe art of Flutter testing
41mWriting better tests with less work
32mexpect(isTestingInFlutterEasy, isTrue);
38mFlipping the Testing Pyramid
20mGlitter with Flutter
41mTesting Mobile Apps with Flutter & Appium - The Tradeoffs
20mCode Quality Gates for Large-Scale Flutter Apps
41mLet's test the full widget tree!
