大佬教程收集整理的这篇文章主要介绍了android-espresso – CircleCi 2.0上是否提供针对Android Espresso的Instrumentation测试?,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
谢谢
version: 2 jobs: build: working_directory: ~/code docker: - image: circleci/android:api-25-alpha environment: JVM_OPTS: -Xmx3200m steps: - checkout - restore_cache: key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} - run: name: Chmod permissions #if permission for Gradlew Dependencies fail,use this. command: sudo chmod +x ./gradlew - run: name: Download Dependencies command: ./gradlew androidDependencies - save_cache: paths: - ~/.gradle key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} - run: name: Setup emulator command: sdkmanager "system-images;android-25;google_apis;armeabi-v7a" && echo "no" | avdmanager create avd -n test -k "system-images;android-25;google_apis;armeabi-v7a" - run: name: Launch emulator command: export LD_LIBRARY_PATH=${ANDROID_HOME}/emulator/lib64:${ANDROID_HOME}/emulator/lib64/qt/lib && emulator64-arm -avd test -noaudio -no-boot-anim -no-window -accel on BACkground: true - run: name: Wait emulator command: | # wait for it to have booted circle-android wait-for-boot # unlock the emulator screen sleep 30 adb sHell input keyevent 82 - run: name: Run Tests command: ./gradlew connectedAndroidTest - store_artifacts: path: app/build/reports desTination: reports - store_test_results: path: app/build/test-results
以上是大佬教程为你收集整理的android-espresso – CircleCi 2.0上是否提供针对Android Espresso的Instrumentation测试?全部内容,希望文章能够帮你解决android-espresso – CircleCi 2.0上是否提供针对Android Espresso的Instrumentation测试?所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。