engine/src/flutter/tools/compare_goldens/README.md
This is a script that will let you check golden image diffs locally.
The directories are scanned for png files that match in name, then the diff
is written to diff_<name of file> in the CWD. This allows you to get
results quicker than having to upload to skia gold. By default it uses fuzzy
RMSE to compare.
dart run compare_goldens <dir path> <dir path>
Here's the steps for using this with something like impeller golden tests:
To run the tests:
dart pub get
find . -name "*_test.dart" | xargs -n 1 dart --enable-asserts