Flutter Test Goldens
A toolkit for writing golden tests.
Getting Started
Learn how to use flutter_test_goldens at FlutterGoldens.com.
Examples
The following are examples of what you can render in your golden tests with flutter_test_goldens:
Single Shot Galleries
Multi-Golden Galleries
Magazine Galleries
Animation Timelines
Interaction Timelines
CLI Commands
Commands shipped with this package:
# Extract each individual golden image from a scene into its own file.
golden-scene extract [scene/file/path.png]
# Print what would be extracted.
golden-scene extract --dry-run [scene/file/path.png]
Activate the package for global CLI access:
# From Pub
dart pub global activate flutter_test_goldens
# Locally from the repo (assuming repo is working directory)
dart pub global activate --source path .