Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Golden compare sample

This is a tiny standalone Flutter app with one golden test for comparing image output across two macOS versions.

Generate the golden

From this directory:

flutter test --update-goldens test/golden/sample_golden_test.dart

The generated image will be:

test/golden/goldens/sample_golden_card.png

Compare two machines

Run the command above on both macOS versions, then compare:

shasum -a 256 test/golden/goldens/sample_golden_card.png

If the hashes differ, you can also diff the files visually or compare them with:

git diff --no-index \
  /path/to/macos-old/sample_golden_card.png \
  /path/to/macos-new/sample_golden_card.png

golden_compare_sample

A new Flutter project.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages