Fix documentation error in README of integration_test (#117977)
Fix documentation error in README of `integration_test`
This commit is contained in:
@@ -310,7 +310,13 @@ dev_target="14.3"
|
||||
flutter build ios integration_test/foo_test.dart --release
|
||||
|
||||
pushd ios
|
||||
xcodebuild -workspace Runner.xcworkspace -scheme Runner -config Flutter/Release.xcconfig -derivedDataPath $output -sdk iphoneos build-for-testing
|
||||
xcodebuild build-for-testing \
|
||||
-workspace Runner.xcworkspace \
|
||||
-scheme Runner \
|
||||
-xcconfig Flutter/Release.xcconfig \
|
||||
-configuration Release \
|
||||
-derivedDataPath \
|
||||
$output -sdk iphoneos
|
||||
popd
|
||||
|
||||
pushd $product
|
||||
@@ -321,11 +327,15 @@ popd
|
||||
You can verify locally that your tests are successful by running the following command:
|
||||
|
||||
```sh
|
||||
xcodebuild test-without-building -xctestrun "build/ios_integ/Build/Products/Runner_iphoneos14.3-arm64.xctestrun" -destination id=<YOUR_DEVICE_ID>
|
||||
xcodebuild test-without-building \
|
||||
-xctestrun "build/ios_integ/Build/Products/Runner_iphoneos14.3-arm64.xctestrun" \
|
||||
-destination id=<YOUR_DEVICE_ID>
|
||||
```
|
||||
|
||||
Once everything is ok, you can upload the resulting zip to Firebase Test Lab (change the model with your values):
|
||||
|
||||
```sh
|
||||
gcloud firebase test ios run --test "build/ios_integ/Build/Products/ios_tests.zip" --device model=iphone11pro,version=14.1,locale=fr_FR,orientation=portrait
|
||||
gcloud firebase test ios run \
|
||||
--test "build/ios_integ/Build/Products/ios_tests.zip" \
|
||||
--device model=iphone11pro,version=14.1,locale=fr_FR,orientation=portrait
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user