1#!/bin/bash 2 3set -ex 4 5# Instrumentation tests log results to logcat, so enable it during test runs. 6adb logcat *:S TestRunner:V & LOGCAT_PID=$! 7 8readonly GRADLE_PROJECTS=( 9 "javatests/artifacts/hilt-android/simple" 10 "javatests/artifacts/hilt-android/simpleKotlin" 11) 12for project in "${GRADLE_PROJECTS[@]}"; do 13 echo "Running gradle Android emulator tests for $project" 14 ./$project/gradlew -p $project connectedAndroidTest --continue --no-daemon --stacktrace --configuration-cache 15done 16 17# Close logcat 18if [ -n "$LOGCAT_PID" ] ; then kill $LOGCAT_PID; fi 19