flutter/packages/flutter_tools/test
Srujan Gaddam 9393aae393
Align web terminal messages with the VM (#163268)
- Adds better instructions for hot reload (if using the right flags),
hot restart, quitting, clearing, and more. These were already being
printed when using the VM, so this aligns with that.
- Adds an extra parameter for `CommandHelp` to `ResidentRunner` so
`ResidentWebRunner` can pass a version of it that uses its separate
logger and not `globals`. In order to support this, classes up the stack
also provide a `Terminal`, `Platform`, and `OutputPreferences`.
- Fixes up use of `globals` from an earlier change to implement hot
reload to use the logger instead. Same with `globals.platform`.
- Adds tests to check that only hot restart is printed when not using
the extra front-end flags, and both hot restart and hot reload is
printed when you are.

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [x] I signed the [CLA].
- [x] I listed at least one issue that this PR fixes in the description
above.
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [x] I followed the [breaking change policy] and added [Data Driven
Fixes] where supported.
- [x] All existing and new tests are passing.
2025-02-14 19:57:53 +00:00
..
android_java11_integration.shard Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
android_preview_integration.shard Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
commands.shard Align web terminal messages with the VM (#163268) 2025-02-14 19:57:53 +00:00
data make asset_test.dart tests not dependent on context (#141331) 2024-01-11 18:08:07 +00:00
general.shard Align web terminal messages with the VM (#163268) 2025-02-14 19:57:53 +00:00
host_cross_arch.shard Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
integration.shard Opt-out of --explicit-package-dependencies for flutter_gen_test. (#163174) 2025-02-13 00:40:30 +00:00
src Make developing flutter_tools nicer: Use fail instead of throw StateError. (#163094) 2025-02-12 17:24:26 +00:00
web.shard Align web terminal messages with the VM (#163268) 2025-02-14 19:57:53 +00:00