Skip to content

Instantly share code, notes, and snippets.

@alorma
Last active Mar 7, 2018
Embed
What would you like to do?
#!/bin/sh
# Check if device is connected
if [[ $(adb get-state) ]]; then
# Run Android and jUnit tests
./gradlew clean testDebug connectedDebugAndroidTest
else
# Run jUnit tests
./gradlew clean testDebug
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment