Golden File Testing
The term golden file refers to a master image that is considered the true rendering of a given widget, state, application, or other visual representation you have chosen to capture.
Tag golden tests
Golden tests should be tagged to make it easier to run them separately from other tests.
Configure your golden test tag
To configure a golden test tag across multiple files (or an entire package), create a dart_test.yaml
file and add the tag configuration:
You can then run the tests with the tag golden
in isolation, or quickly update
the golden files with the --update-goldens
flag: