Created
May 27, 2020 17:01
-
-
Save shaker-project/080b2c5d71e5fadb373715b50e3c3123 to your computer and use it in GitHub Desktop.
Run test flaky espresso
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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