Compare commits

..

1 Commits

Author SHA1 Message Date
6626784e8b ci: Instrumentation tests coverage in ci.
All checks were successful
Check PR code / BuildAndTestAndCoverage (pull_request) Successful in 31m43s
2025-03-25 22:44:36 +01:00
2 changed files with 1 additions and 5 deletions

View File

@ -38,14 +38,10 @@ jobs:
- name: Change url until I find a better way to do it - name: Change url until I find a better way to do it
run: | run: |
sed -i "s/val defaultUrl = \"http:\/\/10\.0\.2\.2\:8888\"/val defaultUrl = \"http:\/\/172\.17\.0\.1\:8888\"/g" ./androidApp/src/androidTest/kotlin/bou/amine/apps/readerforselfossv2/android/CommonTests.kt sed -i "s/val defaultUrl = \"http:\/\/10\.0\.2\.2\:8888\"/val defaultUrl = \"http:\/\/172\.17\.0\.1\:8888\"/g" ./androidApp/src/androidTest/kotlin/bou/amine/apps/readerforselfossv2/android/CommonTests.kt
- name: AVD kedavra
run: |
avdmanager list device
- name: Tests - name: Tests
uses: reactivecircus/android-emulator-runner@v2 uses: reactivecircus/android-emulator-runner@v2
with: with:
api-level: 29 api-level: 29
profile: Pixel 7a
script: | script: |
./gradlew androidApp:clearScreenshotsTask || true ./gradlew androidApp:clearScreenshotsTask || true
./gradlew androidApp:createScreenshotDirectory ./gradlew androidApp:createScreenshotDirectory

View File

@ -50,7 +50,6 @@ class SourcesActivity :
override fun onResume() { override fun onResume() {
super.onResume() super.onResume()
CountingIdlingResourceSingleton.increment()
val mLayoutManager = LinearLayoutManager(this) val mLayoutManager = LinearLayoutManager(this)
var items: ArrayList<SelfossModel.SourceDetail> var items: ArrayList<SelfossModel.SourceDetail>
@ -58,6 +57,7 @@ class SourcesActivity :
binding.recyclerView.setHasFixedSize(true) binding.recyclerView.setHasFixedSize(true)
binding.recyclerView.layoutManager = mLayoutManager binding.recyclerView.layoutManager = mLayoutManager
CountingIdlingResourceSingleton.increment()
CoroutineScope(Dispatchers.IO).launch { CoroutineScope(Dispatchers.IO).launch {
val response = repository.getSourcesDetails() val response = repository.getSourcesDetails()
CountingIdlingResourceSingleton.increment() CountingIdlingResourceSingleton.increment()