mirror of
https://github.com/flutter/flutter.git
synced 2026-02-04 01:56:32 +08:00
DDS was temporarily pinned to 4.1.0 because 4.2.0 triggered some test failures (see https://github.com/flutter/flutter/pull/147250). Those failures should be fixed by vm_service 14.2.2, so this unpins DDS and rolls both of these packages (along with devtools_shared, which is a DDS dependency). (If the bot updates vm_service before this is done, I can rebase over that will reduce the size of this PR to just a few files)
Flutter Web integration tests
To run the tests in this package download the chromedriver matching the version of Chrome. To find out the version of your Chrome installation visit chrome://version.
Start chromedriver using the following command:
chromedriver --port=4444
An integration test is run using the flutter drive command. Some tests are
written for a specific web renderer and/or specific build mode.
Before running a test, check the _runWebLongRunningTests function defined in
dev/bots/test.dart, and determine the right web renderer and the build
mode you'd like to run the test in.
Here's an example of running an integration test:
flutter drive --target=test_driver/text_editing_integration.dart \
-d web-server \
--browser-name=chrome \
--profile \
--web-renderer=html
This example runs the test in profile mode (--profile) using the HTML
renderer (--web-renderer=html).
More resources:
- chromedriver: https://chromedriver.chromium.org/getting-started
- FlutterDriver: https://github.com/flutter/flutter/wiki/Running-Flutter-Driver-tests-with-Web
package:integration_test: https://pub.dev/packages/integration_test