mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
![]() May fix https://github.com/flutter/flutter/issues/148393. There are reports on the robolectric issue tracker of >`4.10.3` causing the error we are seeing https://github.com/robolectric/robolectric/issues/8158 The test doesn't actually need robolectric (and didn't originally use it, or flake before using it), but it was added in https://github.com/flutter/flutter/pull/144348. We can safely remove it by mocking the call to `View.generateViewId()`, so try removing it and see if flakes go away. |
||
---|---|---|
.. | ||
android | ||
integration_test | ||
ios | ||
lib | ||
test_driver | ||
web | ||
.gitignore | ||
pubspec.yaml | ||
README.md |
integration_test_example
Demonstrates how to use the package:integration_test
.
To run integration_test/example_test.dart
,
Android / iOS
flutter drive \
--driver=test_driver/integration_test.dart \
--target=integration_test/example_test.dart
Web
In one shell, run Chromedriver (download here):
chromedriver --port 8444
Then, in another shell, run flutter drive
:
flutter drive \
--driver=test_driver/integration_test.dart \
--target=integration_test/example_test.dart \
-d web-server