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
130130to set up a project.
131131
132132To 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
136136pushd 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
139141popd
142144Upload 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
146148gcloud auth activate-service-account --key-file=< PATH_TO_KEY_FILE>
147149gcloud --quiet config set project < PROJECT_NAME>
148150gcloud firebase test android run --type instrumentation \
You can’t perform that action at this time.
0 commit comments