Skip to content

Instantly share code, notes, and snippets.

@rafaelje
Created July 15, 2018 22:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafaelje/be5f504bd3aa0782658d71d449600b48 to your computer and use it in GitHub Desktop.
Save rafaelje/be5f504bd3aa0782658d71d449600b48 to your computer and use it in GitHub Desktop.
Run an instrumented test many times on Android
# from this link https://medium.com/@jim.zack.hu/repeating-espresso-tests-efficiently-83965c509dfd
for i in {1..100}
do
echo Test Number $i
adb shell am instrument -w -e class org.flyve.inventory.agent.Someclass org.flyve.inventory.agent.test/android.support.test.runner.AndroidJUnitRunner
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment