Member-only story

Flutter Golden Test Secrets

Fred Grott
6 min readOct 22, 2021

--

What is the major difference between integration testing and Widget Golden testing? In integration testing, we are doing widget testing on full running app. In Widget and Golden testing, we are starting the Flutter Engine and then pumping one widget for one frame under test conditions.

That means we have to do Visual Acceptance Testing in Integration different from then we do when we just test a widget for one frame like we do for Goldens testing.

The Google Flutter team decided to phone home and not show the proper Goldens testing best practices in the Flutter Skeleton App template.

In this second article, you will find the sample code in the gtdd_two subfolder of the gtdd folder in this repo:

Get Access To My Free Stuff

My free Flutter Code And Design Assets can be found at:

--

--

Fred Grott
Fred Grott

No responses yet