flutter/packages/integration_test/example/README.md
Kishan Dhankecha 2867ac7885
Added missing code block language in docs (#147481)
- added language for all code blocks
- replaced `bash` or `shell` with `sh` for consistency.
- added `sh` and `console` in the GitHub template link generator.
- updated test for GitHub template.
2024-05-01 14:44:27 +00:00

32 lines
592 B
Markdown

# integration_test_example
Demonstrates how to use the `package:integration_test`.
To run `integration_test/example_test.dart`,
## Android / iOS
```sh
flutter drive \
--driver=test_driver/integration_test.dart \
--target=integration_test/example_test.dart
```
## Web
In one shell, run Chromedriver ([download
here](https://chromedriver.chromium.org/downloads)):
```sh
chromedriver --port 8444
```
Then, in another shell, run `flutter drive`:
```sh
flutter drive \
--driver=test_driver/integration_test.dart \
--target=integration_test/example_test.dart \
-d web-server
```