1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

Add an e2e (host-independent) test demo to testing_app (#515)

This commit is contained in:
Ming Lyu (CareF)
2020-08-13 18:00:22 -04:00
committed by GitHub
parent 437d1f620b
commit 824aeb5a16
11 changed files with 371 additions and 15 deletions

View File

@@ -77,4 +77,21 @@ gcloud firebase test android run --type instrumentation \
--timeout 5m
popd
echo "== Run e2e test for testing_app =="
pushd "testing_app"
readonly APP_DIR=$(pwd)
"${LOCAL_SDK_PATH}/bin/flutter" packages get
"${LOCAL_SDK_PATH}/bin/flutter" build apk
pushd "android"
./gradlew app:assembleAndroidTest
./gradlew app:assembleRelease -Ptarget=${APP_DIR}/test/perf_test_e2e.dart
popd
gcloud auth activate-service-account --key-file=../svc-keyfile.json
gcloud --quiet config set project test-lab-project-ccbec
gcloud firebase test android run --type instrumentation \
--app build/app/outputs/apk/release/app-release.apk \
--test build/app/outputs/apk/androidTest/debug/app-debug-androidTest.apk \
--timeout 5m
popd
echo "-- Success --"