mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-25 14:02:36 -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
|
arch: x86_64
|
||||||
profile: pixel_2
|
profile: pixel_2
|
||||||
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none
|
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none
|
||||||
ram-size: ${{ matrix.api-level == 33 && '6144M' || '4096M' }}
|
ram-size: ${{ matrix.api-level != 24 && '6144M' || '4096M' }}
|
||||||
cores: ${{ matrix.api-level == 33 && 4 || 2 }}
|
cores: ${{ matrix.api-level != 24 && 4 || 2 }}
|
||||||
disk-size: '14G'
|
disk-size: ${{ matrix.api-level != 24 && '20G' || '14G' }}
|
||||||
sdcard-path-or-size: ${{ matrix.api-level != 33 && '1000M' || '4096M' }}
|
sdcard-path-or-size: ${{ matrix.api-level != 33 && '1000M' || '4096M' }}
|
||||||
disable-animations: true
|
disable-animations: true
|
||||||
heap-size: ${{ matrix.api-level == 33 && '512M' || '' }}
|
heap-size: ${{ matrix.api-level != 24 && '512M' || '' }}
|
||||||
channel: canary
|
channel: canary
|
||||||
script: bash contrib/instrumentation.sh
|
script: bash contrib/instrumentation.sh
|
||||||
|
|
||||||
|
@ -130,6 +130,7 @@ class LibraryRobot : BaseRobot() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun clickOnDeleteZimFile() {
|
private fun clickOnDeleteZimFile() {
|
||||||
|
pauseForBetterTestPerformance()
|
||||||
onView(withText("DELETE")).perform(click())
|
onView(withText("DELETE")).perform(click())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,7 +76,7 @@ class NavigationHistoryRobot : BaseRobot() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun assertBackwardNavigationHistoryDialogDisplayed() {
|
fun assertBackwardNavigationHistoryDialogDisplayed() {
|
||||||
pauseForBetterTestPerformance()
|
BaristaSleepInteractions.sleep(TestUtils.TEST_PAUSE_MS.toLong())
|
||||||
isVisible(TextId(R.string.backward_history))
|
isVisible(TextId(R.string.backward_history))
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -86,7 +86,7 @@ class NavigationHistoryRobot : BaseRobot() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun assertForwardNavigationHistoryDialogDisplayed() {
|
fun assertForwardNavigationHistoryDialogDisplayed() {
|
||||||
pauseForBetterTestPerformance()
|
BaristaSleepInteractions.sleep(TestUtils.TEST_PAUSE_MS.toLong())
|
||||||
isVisible(TextId(R.string.forward_history))
|
isVisible(TextId(R.string.forward_history))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user