Earlier my project's tests used to run correctly but now after migrating to androidx it shows No tests found
.
I tried many solutions like adding platform-tools to travis.yml, changing the config, etc.., In local, tests are running fine with the emulator.
My travis config
before_script:
- echo "y" | android update sdk -a --no-ui --filter android-$EMULATOR_API_LEVEL
- echo "y" | android update sdk -a --no-ui --filter sys-img-armeabi-v7a-android-$EMULATOR_API_LEVEL
- android list targets | grep -E '^id:' | awk -F '"' '{$1=""; print $2}' # list all targets
- echo no | android create avd --force -n test -t android-$EMULATOR_API_LEVEL --abi $ANDROID_ABI --tag $ANDROID_TAG
- emulator -avd test -no-skin -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
- adb wait-for-device get-serialno
- cd ${TRAVIS_BUILD_DIR}
- chmod +x gradlew
- ./gradlew --version
script:
- ./gradlew build connectedCheck
This is my log file. Travis Job log
Aucun commentaire:
Enregistrer un commentaire