Developer: “YESSS! My world-class widget test is ready to run.”
(runs the test)
Debug Console: “Expected to see 1 widget, found none.”
Developer: What! Why, why, why!!!
(figures out all async calls in the widget; spends 4Â hours re-reading about widget testing, exploring the source code of WidgetTester.pump()
 and setting up mock classes using Mockito.)
Developer: “Muwaha haha! I am the greatest mocker ever lived.”
(runs the test again)
Debug Console: “A RenderFlex overflowed by 20Â pixels on the right.”