Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
278 views
in Technique[技术] by (71.8m points)

flutter - Firebase TestLab tests are failing when run from the pipeline

I'm trying to automate testing with firebase Test Lab with every commit to a certain branch we are using google cloud build for CI/CD.. and my cloudbuild.yaml file has the following commands :

  - name: 'gcr.io/$PROJECT_ID/flutter'
    id: 'build'
    entrypoint: '/bin/bash'
    args:
      - '-c'
      - |
        flutter channel beta
        flutter build apk
        cd android
        ./gradlew app:assembleAndroidTest
        ./gradlew app:assembleDebug -Ptarget=./integration_test/app_test.dart
  - name: gcr.io/cloud-builders/gcloud
    id: "firebase testlab"
    entrypoint: '/bin/bash'
    args:
      - '-c'
      - |
        <activating google-service-account and setting the firebase project>
        gcloud firebase test android run --type instrumentation 
        --app build/app/outputs/apk/debug/app-debug.apk 
        --test build/app/outputs/apk/androidTest/debug/app-debug-androidTest.apk 
        --timeout 2m

When I run these exact same commands from my local machine, it uploads to testlab successfully and my tests pass. But when running from he pipeline it fails with the following logs :

test details from logs


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...