ci: Instrumentation tests coverage in ci.
All checks were successful
Check PR code / BuildAndTestAndCoverage (pull_request) Successful in 41m45s
All checks were successful
Check PR code / BuildAndTestAndCoverage (pull_request) Successful in 41m45s
This commit is contained in:
@ -28,13 +28,6 @@ jobs:
|
||||
- name: run selfoss
|
||||
run: |
|
||||
docker compose -f .gitea/workflows/assets/docker-compose.yml up -d
|
||||
# https://github.com/ReactiveCircus/android-emulator-runner/issues/385
|
||||
- name: Kill crashpad_handler processes
|
||||
if: always()
|
||||
run: |
|
||||
pkill -SIGTERM crashpad_handler || true
|
||||
sleep 5
|
||||
pkill -SIGKILL crashpad_handler || true
|
||||
- name: Change url until I find a better way to do it
|
||||
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
|
||||
@ -42,13 +35,14 @@ jobs:
|
||||
uses: reactivecircus/android-emulator-runner@v2
|
||||
with:
|
||||
api-level: 29
|
||||
profile: pixel_2
|
||||
script: |
|
||||
./gradlew androidApp:clearScreenshotsTask || true
|
||||
./gradlew androidApp:createScreenshotDirectory
|
||||
adb logcat -G 16M
|
||||
./gradlew JacocoDebugCodeCoverage || true
|
||||
./gradlew androidApp:fetchScreenshots
|
||||
adb logcat 'InputReader:S' 'chatty:S' 'audio_hw_generic:S' '*:I' -d > ./androidApp/build/reports/androidTests/connected/screenshots/logs.txt
|
||||
adb logcat 'InputReader:S' 'chatty:S' 'audio_hw_generic:S' 'LogApiCalls:D' '*:I' -d > ./androidApp/build/reports/androidTests/connected/screenshots/logs.txt
|
||||
- uses: actions/upload-artifact@v3
|
||||
if: always()
|
||||
with:
|
||||
|
Reference in New Issue
Block a user