Skip to content

Instantly share code, notes, and snippets.

@shaker-project
Created May 27, 2020 17:01
Show Gist options
  • Save shaker-project/080b2c5d71e5fadb373715b50e3c3123 to your computer and use it in GitHub Desktop.
Save shaker-project/080b2c5d71e5fadb373715b50e3c3123 to your computer and use it in GitHub Desktop.
Run test flaky espresso
#We require that stress-ng is installed. If not, run $> sudo apt-get install stress-ng.
$emulator= #your PID for emulator here
taskset -c -pa 0 $emulator
stress-ng --cpu 1 --cpu-load 51% --vm 1 --vm-bytes 13% &
PID=$!
adb shell am instrument -w -r -e class io.github.marktony.espresso.packages.AppNavigationTest#clickOnNavigationDrawerItem_ChangeTheme -e debug false io.github.marktony.espresso.test/android.support.test.runner.AndroidJUnitRunner
kill -9 $PID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment