#!/usr/bin/env bash adb devices # Install debug app adb -s emulator-5554 install app/debug/app-debug.apk # Install instrumental tests adb -s emulator-5554 install app/androidTest/debug/app-debug-androidTest.apk # Run tests adb logcat -c # DIAGNOSTIC: stream logcat live (unbuffered) alongside the test run, so a hang shows real # device-side activity (network calls, coroutine timeouts, ANRs) instead of just silence. adb logcat -v time '*:D' & LOGCAT_PID=$! python -u - </dev/null adb logcat -d '*:E' # Export results adb exec-out run-as io.pezkuwichain.wallet.debug sh -c 'cd /data/data/io.pezkuwichain.wallet.debug/files && tar cf - allure-results' > allure-results.tar exit $EXIT_CODE