tree: e984143996bf92562096991549270cb9ba049651 [path history] [tgz]
  1. bin/
  2. lib/
  3. test/
  4. .gitignore
  5. analysis_options.yaml
  6. pubspec.yaml
  7. README.md
tools/golden_tests_harvester/README.md

Golden Tests Harvester

A command-line tool that uploads golden images to Skia gold from a directory.

Usage

This program assumes you've already run a suite of golden tests that produce a directory of images with a JSON digest named digests.json, which is documented in lib/golden_tests_harvester.dart.

Provide the directory as the only positional argument to the program:

dart ./tools/golden_tests_harvester/bin/golden_tests_harvester.dart <path/to/digests>

[!INFO] Skia Gold must be setup and configured to accept the images being uploaded.

In practice, that means it's the process is running on CI.

Optionally, you can run in --dry-run mode to see what would be uploaded without actually uploading anything:

dart ./tools/golden_tests_harvester/bin/golden_tests_harvester.dart --dry-run <path/to/digests>

This flag is automatically set when running locally (i.e. outside of CI).