flutter_test_goldens 0.1.0 copy "flutter_test_goldens: ^0.1.0" to clipboard
flutter_test_goldens: ^0.1.0 copied to clipboard

A toolkit for writing golden tests

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 #

single_shot_standalone

Multi-Golden Galleries #

gallery

Magazine Galleries #

slack_chat_magazine_layout

Animation Timelines #

crazy-switch_5-shot

Interaction Timelines #

otp

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 .