Skip to content

Commit 0cdac08

Browse files
CareFjorgefspereira
authored andcommitted
Clarify e2e readme for running on firebase test lab (flutter#2898)
* clarify e2e on firebase
1 parent 09ec2e5 commit 0cdac08

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/e2e/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,12 @@ documentation](https://firebase.google.com/docs/test-lab/?gclid=EAIaIQobChMIs5qV
130130
to set up a project.
131131

132132
To run an e2e test on Android devices using Firebase Test Lab, use gradle commands to build an
133-
instrumentation test for Android.
133+
instrumentation test for Android, after creating `androidTest` as suggested in the last section.
134134

135-
```
135+
```bash
136136
pushd android
137+
# flutter build generates files in android/ for building the app
138+
flutter build apk
137139
./gradlew app:assembleAndroidTest
138140
./gradlew app:assembleDebug -Ptarget=<path_to_test>.dart
139141
popd
@@ -142,7 +144,7 @@ popd
142144
Upload the build apks Firebase Test Lab, making sure to replace <PATH_TO_KEY_FILE>,
143145
<PROJECT_NAME>, <RESULTS_BUCKET>, and <RESULTS_DIRECTORY> with your values.
144146

145-
```
147+
```bash
146148
gcloud auth activate-service-account --key-file=<PATH_TO_KEY_FILE>
147149
gcloud --quiet config set project <PROJECT_NAME>
148150
gcloud firebase test android run --type instrumentation \

0 commit comments

Comments
 (0)