flutter/packages/flutter_tools/test
Matan Lurey 18f56e3224
Refactor TestGoldenComparator to be useful for non-web (Android, iOS) integration tests (#160215)
Part of https://github.com/flutter/flutter/issues/160043, makes it
easier to add https://github.com/flutter/flutter/pull/160131.

This PR has no functional changes to any of the code, but does refactor
both the code and tests:

- Makes a number of always non-null but not migrated to non-null
properties, well, not-null
- Creates two concrete methods (`update` and `compare` versus a
positional nullable boolean)
- Uses type signatures instead of `String?` to explain the possible
results of the methods
- Renames the mysterious `shellPath` variable to `flutterTesterBinPath`
- Expands and rewrites internally-facing doc comments
- Moves `WebRenderer` environment variable setting to
`flutter_web_platform.dart`
- Makes the tests have less duplication, and check for update/compare
cases

After this PR, I can use it in the non-web branch of the Flutter tool
without any hacks or TODOS :)

/cc @eyebrowsoffire (trivial web refactoring), @camsim99 (changes being
made to tool).
2024-12-16 22:08:54 +00:00
..
android_java11_integration.shard Bump AGP/Gradle/Kotlin warn versions (#158839) 2024-11-25 21:13:24 +00:00
android_preview_integration.shard Align comments in flutter_build_preview_sdk_test.dart with build.gradle.kts usage (#159299) 2024-12-06 21:18:08 +00:00
commands.shard Refactor TestGoldenComparator to be useful for non-web (Android, iOS) integration tests (#160215) 2024-12-16 22:08:54 +00:00
data make asset_test.dart tests not dependent on context (#141331) 2024-01-11 18:08:07 +00:00
general.shard Refactor TestGoldenComparator to be useful for non-web (Android, iOS) integration tests (#160215) 2024-12-16 22:08:54 +00:00
host_cross_arch.shard Test alternate correct macOS framework xcprivacy manifest location (#157318) 2024-10-22 19:41:14 +00:00
integration.shard Skip integration tests that consistently OOM on a Windows platform. (#160368) 2024-12-16 19:14:58 +00:00
src doctor: make JDK validation message more descriptive (#157280) 2024-11-23 00:27:18 +00:00
web.shard [tool] Removes deprecated --web-renderer parameter. (#159314) 2024-12-02 18:33:02 +00:00