1. 29 Jan, 2019 1 commit
  2. 06 Nov, 2018 3 commits
  3. 01 Oct, 2018 1 commit
  4. 12 Sep, 2018 1 commit
  5. 15 Aug, 2018 1 commit
    • Ian Hickson's avatar
      Shim package:test to avoid matcher issues (#20602) · 686d8f8a
      Ian Hickson authored
      * Upgrade everything except matcher.
      * Roll matcher (and test)
      * Adjust tests that depend on flutter:test directly to depend on a shim
      * Require use of package:test shim and remove other references to package:test
      686d8f8a
  6. 01 Jun, 2018 1 commit
  7. 10 May, 2018 1 commit
  8. 07 May, 2018 1 commit
    • Todd Volkert's avatar
      Golden file fixes (#17299) · 52e46056
      Todd Volkert authored
      1. Make goldenFileComparator getter return `null` if it's set to the
         uninitialized comparator, which matches the behavior of the setter
         (it sets it to the uninitialized comparator if the caller specifies
         `null`).
      2. Make the uninitialized comparator return trivial success (and print
         a message) when asked to compare as opposed to throwing. This ensures
         that the comparator will play nicely with live widget bindings
      3. Augment documentation
      4. Add assert that test doesn't modify the value of `autoUpdateGoldenFiles`
      52e46056
  9. 04 May, 2018 2 commits
    • Todd Volkert's avatar
      Expose generateTestBootstrap() as public API in test harness (#17290) · be09a200
      Todd Volkert authored
      This will allow external tools that wrap our test harness to share the
      code that generates the test bootstrap.
      
      This change exposed an issue whereby the LocalGoldenFileComparator
      was being too strict in its URI handling, so this changes relaxes
      that constraint as well (and adds associated tests).
      be09a200
    • Todd Volkert's avatar
      Follow-on work to goldens (#17267) · c8908ff0
      Todd Volkert authored
      * Exclude flutter_goldens package from dartdoc because it's for internal
        use only
      * Document why flutter_tools doesn' tneed to be excluded from the list of
        packages to document
      * Performance optimization in the flutter comparator, and associated
        test updates.
      c8908ff0
  10. 03 May, 2018 1 commit
  11. 01 May, 2018 1 commit
  12. 30 Apr, 2018 1 commit
    • 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