mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-24 21:45:14 -04:00
Increased ram, cores and heap-size for API level 30 emulator for better test performance.
* Improved test performance.
This commit is contained in:
parent
f90d92e1e4
commit
00580d5afa
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -47,12 +47,12 @@ jobs:
|
||||
arch: x86_64
|
||||
profile: pixel_2
|
||||
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none
|
||||
ram-size: ${{ matrix.api-level == 33 && '6144M' || '4096M' }}
|
||||
cores: ${{ matrix.api-level == 33 && 4 || 2 }}
|
||||
disk-size: '14G'
|
||||
ram-size: ${{ matrix.api-level != 24 && '6144M' || '4096M' }}
|
||||
cores: ${{ matrix.api-level != 24 && 4 || 2 }}
|
||||
disk-size: ${{ matrix.api-level != 24 && '20G' || '14G' }}
|
||||
sdcard-path-or-size: ${{ matrix.api-level != 33 && '1000M' || '4096M' }}
|
||||
disable-animations: true
|
||||
heap-size: ${{ matrix.api-level == 33 && '512M' || '' }}
|
||||
heap-size: ${{ matrix.api-level != 24 && '512M' || '' }}
|
||||
channel: canary
|
||||
script: bash contrib/instrumentation.sh
|
||||
|
||||
|
@ -130,6 +130,7 @@ class LibraryRobot : BaseRobot() {
|
||||
}
|
||||
|
||||
private fun clickOnDeleteZimFile() {
|
||||
pauseForBetterTestPerformance()
|
||||
onView(withText("DELETE")).perform(click())
|
||||
}
|
||||
|
||||
|
@ -76,7 +76,7 @@ class NavigationHistoryRobot : BaseRobot() {
|
||||
}
|
||||
|
||||
fun assertBackwardNavigationHistoryDialogDisplayed() {
|
||||
pauseForBetterTestPerformance()
|
||||
BaristaSleepInteractions.sleep(TestUtils.TEST_PAUSE_MS.toLong())
|
||||
isVisible(TextId(R.string.backward_history))
|
||||
}
|
||||
|
||||
@ -86,7 +86,7 @@ class NavigationHistoryRobot : BaseRobot() {
|
||||
}
|
||||
|
||||
fun assertForwardNavigationHistoryDialogDisplayed() {
|
||||
pauseForBetterTestPerformance()
|
||||
BaristaSleepInteractions.sleep(TestUtils.TEST_PAUSE_MS.toLong())
|
||||
isVisible(TextId(R.string.forward_history))
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user