Open rpappalax opened 3 years ago
Notes (10/07):
Step 1:
Step 2:
gcloud firebase test android run \
--type robo \
--app app-debug-unaligned.apk \
--device model=Nexus6,version=21,locale=en,orientation=portrait \
--device model=Nexus7,version=19,locale=fr,orientation=landscape \
--timeout 90s
https://firebase.google.com/docs/test-lab/android/command-line
--num-uniform-shards=int
https://cloud.google.com/sdk/gcloud/reference/beta/firebase/test/android/run#--num-uniform-shards
DEVICE="model=Pixel2,version=28,locale=en,orientation=portrait"
GOOGLE_CLOUD_STORAGE_BUCKET="fenix_test_artifacts"
NUM_UNIFORM_SHARDS=1
gcloud beta firebase test android run \
--type instrumentation \
--app ${APK_APP} \
--test ${APK_TEST} \
--device ${DEVICE} \
--timeout 30m \
--results-bucket gs://${GOOGLE_CLOUD_STORAGE_BUCKET} \
--results-dir ${RESULTS_DIR} \
--num-uniform-shards ${NUM_UNIFORM_SHARDS} \
--record-video \
--num-flaky-test-attempts 1 \
--no-auto-google-login \
--test-targets "class org.mozilla.fenix.ui.NavigationToolbarTest#visitURLTest" \
--use-orchestrator
NOTE: Need to replace flank!
Flank team will soon stop supporting Flank so we'll need to switch over to a native Firebase API call. We should also determine what we'll be losing by making this switch over
FIREBASE GCLOUD BETA API https://cloud.google.com/sdk/gcloud/reference/beta/firebase/test/android/run#--results-dir
FLANK CODE https://github.com/Flank/flank
NOTE:
STEPS TO COMPLETE
gcloud beta artifacts
CostReport.txt FullJUnitReport.xml JUnitReport.xml MatrixResultsReport.txt android-test.apk android_shards.json app.apk matrix_0/ matrix_ids.json
To create a yaml config like flank.yaml
UNKNOWNS
gcloud beta
- READ