Overview
Flutter golden tests are widget tests that choose to compare pixels instead of other things. Therefore, the golden test execution path is essentially the same as the standard widget test execution path.
The following are some noteworthy details about goldens:
Flutter golden tests are implemented via the following packages, all of which are defined within the Dart SDK, or Flutter SDK:
- flutter_tools - The Flutter CLI tool, e.g.,
flutter test
. - flutter_test - Test runner for Flutter widget tests.
- test_core - The foundational test runner for all Dart and Flutter tests.