整个config.yml文件如下:
`版本:2.1
职位: 建造: 码头工人: # 选择正确的版本,包括 maven,否则 mvn deploy 会失败 - 图片:cimg/android:2023.02
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "build.gradle" }}
- v1-dependencies-
- run:
name: Download Dependencies
command: ./gradlew androidDependencies
- save_cache:
paths:
- ~/.gradle
key: v1-dependencies-{{ checksum "build.gradle" }}
# Build
- run:
name: build
command: ./gradlew clean assemble
# run tests
- run:
name: run tests
command: ./gradlew PropertiesNonPrivilegedTest`
谢谢!
这条线我应该包括什么路径?因为下面这行找不到这个测试类
command: ./gradlew PropertiesNonPrivilegedTest
我通过在 config.yml 文件中使用以下命令解决了这个问题。
- run: name: run tests command: ./gradlew connectedAndroidTest