From b816801abd84c33606649469054a2f39f0d9f61c Mon Sep 17 00:00:00 2001 From: kye shimizu Date: Wed, 26 Oct 2022 08:29:54 +0900 Subject: [PATCH] fix to add both flutter_test and integration_test (#109650) --- packages/integration_test/README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/integration_test/README.md b/packages/integration_test/README.md index eb9be0e725..ad2910c7f5 100644 --- a/packages/integration_test/README.md +++ b/packages/integration_test/README.md @@ -11,8 +11,11 @@ Add a dependency on the `integration_test` and `flutter_test` package in the `pubspec.yaml` of the example app: ```yaml -integration_test: - sdk: flutter +dev_dependencies: + integration_test: + sdk: flutter + flutter_test: + sdk: flutter ``` Create a `integration_test/` directory for your package. In this directory, @@ -126,7 +129,7 @@ void main() { ``` You can use a driver script to pull in the screenshot from the device. -This way, you can store the images locally on your computer. On iOS, the +This way, you can store the images locally on your computer. On iOS, the screenshot will also be available in Xcode test results. **test_driver/integration_test.dart** @@ -277,6 +280,7 @@ end ``` To build `integration_test/foo_test.dart` from the command line, run: + ```sh flutter build ios --config-only integration_test/foo_test.dart ```