Skip to content

Commit be13a38

Browse files
authored
[web] fix web_e2e_tests README (flutter#92277)
1 parent 01b1112 commit be13a38

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed
Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,41 @@
11
# Flutter Web integration tests
22

33
To run the tests in this package [download][1] the chromedriver matching the
4-
version of Chrome. To find out the version of your Chrome installation visit chrome://version.
4+
version of Chrome. To find out the version of your Chrome installation visit
5+
chrome://version.
6+
57
Start `chromedriver` using the following command:
68

79
```
810
chromedriver --port=4444
911
```
1012

13+
An integration test is run using the `flutter drive` command. Some tests are
14+
written for a specific [web renderer][2] and/or specific [build mode][4].
15+
Before running a test, check the `_runWebLongRunningTests` function defined in
16+
[dev/bots/test.dart][3], and determine the right web renderer and the build
17+
mode you'd like to run the test in.
18+
1119
Here's an example of running an integration test:
1220

1321
```
14-
flutter drive --target=test_driver/text_editing_integration.dart -d web-server --browser-name=chrome
22+
flutter drive --target=test_driver/text_editing_integration.dart \
23+
-d web-server \
24+
--browser-name=chrome \
25+
--profile \
26+
--web-renderer=html
1527
```
1628

29+
This example runs the test in profile mode (`--profile`) using the HTML
30+
renderer (`--web-renderer=html`).
31+
1732
More resources:
1833

1934
* chromedriver: https://chromedriver.chromium.org/getting-started
2035
* FlutterDriver: https://github.com/flutter/flutter/wiki/Running-Flutter-Driver-tests-with-Web
2136
* `package:integration_test`: https://pub.dev/packages/integration_test
2237

2338
[1]: https://chromedriver.chromium.org/downloads
39+
[2]: https://flutter.dev/docs/development/tools/web-renderers
40+
[3]: https://github.com/flutter/flutter/blob/master/dev/bots/test.dart
41+
[4]: https://flutter.dev/docs/testing/build-modes

0 commit comments

Comments
 (0)