flutter/packages/flutter_tools/test/web.shard
Srujan Gaddam f5e8fc35f0
Skip web hot reload tests that test execution for all platforms for now (#162682)
https://github.com/flutter/flutter/issues/162567

There's a general timing error that may occur when loading scripts,
where main might be run before the scripts are done loading, leading to
a crash. These tests test that output is being printed to stdout, and
wait forever for that, leading to timeouts. This is flaky, so the race
condition may or may not occur.

## 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.

Example of a timeout:
https://ci.chromium.org/ui/p/flutter/builders/try/Linux%20web_tool_tests/50762/overview
2025-02-04 20:10:20 +00:00
..
test_data Implement hot reload using the DDC library bundle format (#162498) 2025-02-03 06:10:24 +00:00
chrome_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
debugger_stepping_web_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
expression_evaluation_web_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
hot_reload_web_test.dart Skip web hot reload tests that test execution for all platforms for now (#162682) 2025-02-04 20:10:20 +00:00
hot_reload_with_asset_web_test.dart Skip web hot reload tests that test execution for all platforms for now (#162682) 2025-02-04 20:10:20 +00:00
hot_restart_web_amd_test.dart Implement hot reload using the DDC library bundle format (#162498) 2025-02-03 06:10:24 +00:00
hot_restart_web_ddc_library_bundle_test.dart Implement hot reload using the DDC library bundle format (#162498) 2025-02-03 06:10:24 +00:00
output_web_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
README.md Added missing code block language in docs (#147481) 2024-05-01 14:44:27 +00:00
stateless_stateful_hot_reload_web_test.dart Skip web hot reload tests that test execution for all platforms for now (#162682) 2025-02-04 20:10:20 +00:00
vm_service_web_test.dart Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
web_driver_service_test.dart Propagate environment variables when flutter drive is invoked. (#161452) 2025-01-13 18:48:58 +00:00
web_run_test.dart [tool] Removes deprecated --web-renderer parameter. (#159314) 2024-12-02 18:33:02 +00:00

Web integration tests

These tests are not hermetic, and use the actual Flutter SDK. While they don't require actual devices, they run flutter_tester to test Dart web debug services (dwds) and Flutter integration.

Use this command to run (from the flutter_tools directory):

../../bin/cache/dart-sdk/bin/dart run test test/web.shard

These tests are expensive to run and do not give meaningful coverage information for the flutter tool (since they are black-box tests that run the tool as a subprocess, rather than being unit tests). For this reason, they are in a separate shard when running on continuous integration and are not run when calculating coverage.