Skip to content

Instantly share code, notes, and snippets.

View shaker-project's full-sized avatar

shaker-project

View GitHub Profile
@shaker-project
shaker-project / script_paintroid.sh
Last active June 3, 2020 17:13
Run test flaky Paintroid
#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=$!
#put the class and test here, following the example for the test testScrollToColorChooserOk.
adb shell am instrument -w -r -e class org.catrobat.paintroid.test.espresso.LandscapeIntegrationTest#testScrollToColorChooserOk -e debug false org.catrobat.paintroid.test/android.support.test.runner.AndroidJUnitRunner
kill -9 $PID
@shaker-project
shaker-project / script_espresso.sh
Created May 27, 2020 17:01
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
@shaker-project
shaker-project / script_wifi.sh
Last active June 3, 2020 17:13
Run test flaky WiFiAnalyzer
#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 com.vrem.wifianalyzer.MainInstrumentedTest#testNavigation -e debug false com.vrem.wifianalyzer.BETA.test/androidx.test.runner.AndroidJUnitRunner
kill -9 $PID
@shaker-project
shaker-project / script_orgzly.sh
Last active May 27, 2020 02:33
Run test flaky orgzly
#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=$!
#put the class and test here, following the example for the test testPrefaceHiddenNotDisplayed.
adb shell am instrument -w -r -e class com.orgzly.android.espresso.BookPrefaceTest#testPrefaceHiddenNotDisplayed -e debug false com.orgzly.test/com.orgzly.android.OrgzlyTestRunner
kill -9 $PID
@shaker-project
shaker-project / script_omninotes.sh
Last active June 3, 2020 17:30
Omni-Notes run tests flaky
#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=$!
#put the class and test here, following the example for the test remindersLifecycle.
adb shell am instrument -w -r -e class it.feio.android.omninotes.ui.RemindersLifecycleTest#remindersLifecycle -e debug false it.feio.android.omninotes.alpha.test/androidx.test.runner.AndroidJUnitRunner
@shaker-project
shaker-project / script_FirefoxLite.sh
Last active May 27, 2020 00:05
Run test FirefoxLite
#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=$!
#put the class and test here, following the example for the test typeTextInSearchFieldAndClear_textIsClearedAndBackToHome.
#you must change the runner package (YOU_USER) at the end of the line for your user.
adb shell am instrument -w -r -e disableAnalytics true -e clearPackageData true --no-window-animation -e class org.mozilla.focus.activity.SearchFieldTest#typeTextInSearchFieldAndClear_textIsClearedAndBackToHome -e debug false org.mozilla.rocket.debug.YOU_USER.test/org.mozilla.focus.test.runner.CustomTestRunner
@shaker-project
shaker-project / script_kiss.sh
Last active May 27, 2020 02:53
Run tests flaky KISS
#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=$!
#put the class and test here, following the example for the test testStartLocal[exoplayer].
adb shell am instrument -w -r -e class fr.neamar.kiss.androidTest.FavoritesTest#testExternalBarHiddenWhenViewingAllApps -e debug false fr.neamar.kiss.debug.test/androidx.test.runner.AndroidJUnitRunner
kill -9 $PID
@shaker-project
shaker-project / script_antennapod.sh
Last active May 28, 2020 22:57
Run tests flaky AntennaPod
#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=$!
#put the class and test here, following the example for the test testStartLocal[exoplayer].
adb shell am instrument -w -r --no-window-animation -e debug false -e class de.test.antennapod.playback.PlaybackTest#testStartLocal[exoplayer] de.test.antennapod/androidx.test.runner.AndroidJUnitRunner
kill -9 $PID