From ae5749819bf55239e1ce4a3c5d978a7fa6ec6552 Mon Sep 17 00:00:00 2001 From: "James D. Lin" Date: Mon, 29 Apr 2019 05:43:24 -0700 Subject: [PATCH] Make the matchesGoldenFile docs link to an explanation of how to create golden image files (#31093) --- packages/flutter_test/lib/src/matchers.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/flutter_test/lib/src/matchers.dart b/packages/flutter_test/lib/src/matchers.dart index 47aca19016..098d4c8562 100644 --- a/packages/flutter_test/lib/src/matchers.dart +++ b/packages/flutter_test/lib/src/matchers.dart @@ -297,6 +297,9 @@ Matcher coversSameAreaAs(Path expectedPath, { @required Rect areaToCompare, int /// await expectLater(imageFuture, matchesGoldenFile('save.png')); /// ``` /// +/// Golden image files can be created or updated by running `flutter test +/// --update-goldens` on the test. +/// /// See also: /// /// * [goldenFileComparator], which acts as the backend for this matcher.