Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
be13a38f
Unverified
Commit
be13a38f
authored
Oct 22, 2021
by
Yegor
Committed by
GitHub
Oct 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[web] fix web_e2e_tests README (#92277)
parent
01b11127
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
README.md
dev/integration_tests/web_e2e_tests/README.md
+20
-2
No files found.
dev/integration_tests/web_e2e_tests/README.md
View file @
be13a38f
# Flutter Web integration tests
# Flutter Web integration tests
To run the tests in this package
[
download
][
1
]
the chromedriver matching the
To run the tests in this package
[
download
][
1
]
the chromedriver matching the
version of Chrome. To find out the version of your Chrome installation visit chrome://version.
version of Chrome. To find out the version of your Chrome installation visit
chrome://version.
Start
`chromedriver`
using the following command:
Start
`chromedriver`
using the following command:
```
```
chromedriver --port=4444
chromedriver --port=4444
```
```
An integration test is run using the
`flutter drive`
command. Some tests are
written for a specific
[
web renderer
][
2
]
and/or specific
[
build mode
][
4
]
.
Before running a test, check the
`_runWebLongRunningTests`
function defined in
[
dev/bots/test.dart
][
3
]
, 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:
Here's an example of running an integration test:
```
```
flutter drive --target=test_driver/text_editing_integration.dart -d web-server --browser-name=chrome
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:
More resources:
*
chromedriver: https://chromedriver.chromium.org/getting-started
*
chromedriver: https://chromedriver.chromium.org/getting-started
...
@@ -21,3 +36,6 @@ More resources:
...
@@ -21,3 +36,6 @@ More resources:
*
`package:integration_test`
: https://pub.dev/packages/integration_test
*
`package:integration_test`
: https://pub.dev/packages/integration_test
[
1
]:
https://chromedriver.chromium.org/downloads
[
1
]:
https://chromedriver.chromium.org/downloads
[
2
]:
https://flutter.dev/docs/development/tools/web-renderers
[
3
]:
https://github.com/flutter/flutter/blob/master/dev/bots/test.dart
[
4
]:
https://flutter.dev/docs/testing/build-modes
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment