Flutter Widget Unit Test Wrappers

Flutter test and goldens testing does not run a full flutter app. Instead, the Flutter engine is initialized; then we pump a supplied widget to get a rendered frame. That means acceptance testing on non-integrated testing is somewhat different in that we need to write a wrapper that supplies the App Root Widget so that widget is above the Widget under test in the Widget tree to get a true visual picture of the widget under test.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store