• Todd Volkert's avatar
    Add basic support for golden image file testing (#17094) · e19db89a
    Todd Volkert authored
    * Add a `matchesGoldenFile()` async matcher that will match
      a finder's widget's rasterized image against a golden file.
    * Add support for pluggable image comparison backends
    * Add a default backend that does simplistic PNG byte
      comparison on locally stored golden files.
    * Add support for `flutter test --update-goldens`, which will
      treat the rasterized image bytes produced during the test
      as the new golden bytes and update the golden file accordingly
    
    Still TODO:
    
    * Add support for the `flutter_test_config.dart` test config hook
    * Utilize `flutter_test_config.dart` in `packages/flutter/test`
      to install a backend that retrieves golden files from a dedicated
      `flutter/goldens` repo
    
    https://github.com/flutter/flutter/issues/16859
    e19db89a
Name
Last commit
Last update
bin Loading commit data...
dev Loading commit data...
examples Loading commit data...
packages Loading commit data...
.coveralls.yml Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
ISSUE_TEMPLATE.md Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
analysis_options.yaml Loading commit data...
analysis_options_repo.yaml Loading commit data...
appveyor.yml Loading commit data...
flutter_console.bat Loading commit data...