File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -130,10 +130,12 @@ documentation](https://firebase.google.com/docs/test-lab/?gclid=EAIaIQobChMIs5qV
130
130
to set up a project.
131
131
132
132
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 .
134
134
135
- ```
135
+ ``` bash
136
136
pushd android
137
+ # flutter build generates files in android/ for building the app
138
+ flutter build apk
137
139
./gradlew app:assembleAndroidTest
138
140
./gradlew app:assembleDebug -Ptarget=< path_to_test> .dart
139
141
popd
142
144
Upload the build apks Firebase Test Lab, making sure to replace <PATH_TO_KEY_FILE>,
143
145
<PROJECT_NAME>, <RESULTS_BUCKET>, and <RESULTS_DIRECTORY> with your values.
144
146
145
- ```
147
+ ``` bash
146
148
gcloud auth activate-service-account --key-file=< PATH_TO_KEY_FILE>
147
149
gcloud --quiet config set project < PROJECT_NAME>
148
150
gcloud firebase test android run --type instrumentation \
You can’t perform that action at this time.
0 commit comments