forked from flutter/flutter
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make tests more resilient to Skia gold failures and refactor flutter_…
…goldens for extensive technical debt removal (flutter#139549) * Remove all use of global variables. * Always pass in all dependencies, only create them in main or in tests. * Pass in the "print" primitive. * Make all network traffic retry (except when run locally, when it just auto-passes). * Enable tests to be run in random order.
- Loading branch information
Showing
13 changed files
with
1,645 additions
and
1,477 deletions.
There are no files selected for viewing
6 changes: 0 additions & 6 deletions
6
dev/automated_tests/flutter_test/flutter_gold_expectation.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1 @@ | ||
[0-9]+:[0-9]+ [+]0: Local passes non-existent baseline for new test, null expectation * | ||
*No expectations provided by Skia Gold for test: library.flutter.new_golden_test.1.png. This may be a new test. If this is an unexpected result, check https://flutter-gold.skia.org. | ||
*Validate image output found at flutter/test/library/ | ||
[0-9]+:[0-9]+ [+]1: Local passes non-existent baseline for new test, empty expectation * | ||
*No expectations provided by Skia Gold for test: library.flutter.new_golden_test.2.png. This may be a new test. If this is an unexpected result, check https://flutter-gold.skia.org. | ||
*Validate image output found at flutter/test/library/ | ||
[0-9]+:[0-9]+ [+]2: All tests passed! * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
This package is an internal implementation detail for our testing | ||
infrastructure. It enables the framework to use the Skia Gold | ||
infrastructure for tracking golden image tests. | ||
|
||
See also: | ||
|
||
* https://skia.org/docs/dev/testing/skiagold/ | ||
* https://flutter-gold.skia.org/ | ||
* https://github.com/flutter/flutter/wiki/Writing-a-golden-file-test-for-package:flutter |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.