mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-18 03:48:08 +00:00
update gitlab-ci and screport submodule
This commit is contained in:
parent
bf2e08bb52
commit
d87c5ca616
4 changed files with 20 additions and 14 deletions
|
|
@ -28,22 +28,23 @@ job-android-uitests:
|
|||
- echo no | ${ANDROID_HOME}/cmdline-tools/latest/bin/avdmanager --verbose create avd --force --name $emulator_name --package $android_system_image --tag google_$emulator_type --abi $system_architecture --device $emulator_device > emulatorCreation.log
|
||||
- ${ANDROID_HOME}/platform-tools/adb start-server
|
||||
- ${ANDROID_HOME}/emulator/emulator -avd $emulator_name &
|
||||
- ${WAIT_FOR_ANDROID_EMULATOR_EXE}
|
||||
- ${ANDROID_HOME}/platform-tools/adb shell input keyevent 82
|
||||
- ${UTILS}/wait-for-android-emulator
|
||||
|
||||
script:
|
||||
- ./gradlew -Pandroid.testInstrumentationRunnerArguments.class=org.linphone.call.OutgoingCallUITests -PscreportAutoClose=true connectedAndroidTest
|
||||
- ./gradlew -Pandroid.testInstrumentationRunnerArguments.class=org.linphone.call.OutgoingCallUITests -PscreportAutoClose=true connectedAndroidTest
|
||||
- ${ANDROID_HOME}/platform-tools/adb -s emulator-5554 emu kill
|
||||
- ${ANDROID_HOME}/platform-tools/adb -s emulator-5554 emu kill
|
||||
- ${ANDROID_HOME}/platform-tools/adb kill-server
|
||||
|
||||
after_script:
|
||||
- ${ANDROID_HOME}/platform-tools/adb -s emulator-5554 emu kill
|
||||
- ${ANDROID_HOME}/platform-tools/adb -s emulator-5554 emu kill
|
||||
- ${ANDROID_HOME}/platform-tools/adb kill-server
|
||||
- ${UTILS}/html2xml-report -p app/build/reports/androidTests/connected/
|
||||
- mkdir results & mv app/build/reports/androidTests/connected/* results
|
||||
|
||||
artifacts:
|
||||
paths:
|
||||
- app/build/reports/androidTests/connected/*
|
||||
- results/*
|
||||
when: always
|
||||
reports:
|
||||
junit:
|
||||
- app/build/reports/androidTests/connected/*.html
|
||||
- results/*.xml
|
||||
expire_in: 4 week
|
||||
|
|
|
|||
|
|
@ -331,10 +331,13 @@ def embedScreenshotsTask = task('embedScreenshots', group: 'reporting') {
|
|||
def failedTestCaseDescription = failedTestCase.name
|
||||
def pt1 = failedTestCaseDescription.indexOf(".")
|
||||
def line = failedTestCaseDescription.substring(0, pt1)
|
||||
def pt2 = failedTestCaseDescription.indexOf(".", pt1)
|
||||
def name = failedTestCaseDescription.substring(pt1, pt2)
|
||||
def pt3 = failedTestCaseDescription.indexOf(".", pt2)
|
||||
if (pt3 != -1) name += " (${failedTestCaseDescription.substring(pt3)})"
|
||||
def pt2 = failedTestCaseDescription.indexOf(".", pt1+1)
|
||||
def name = ""
|
||||
if (pt2 != -1) {
|
||||
name = failedTestCaseDescription.substring(pt1 + 1, pt2)
|
||||
def pt3 = failedTestCaseDescription.indexOf(".", pt2)
|
||||
name += " (${failedTestCaseDescription.substring(pt3)})"
|
||||
} else name = failedTestCaseDescription.substring(pt1 + 1)
|
||||
|
||||
def failedTestClassJunitReportFile = new File(reportsDirectory, "${failedTestClassName}.html")
|
||||
|
||||
|
|
|
|||
|
|
@ -2,10 +2,12 @@ package org.linphone.testsuites
|
|||
|
||||
import org.junit.runner.RunWith
|
||||
import org.junit.runners.Suite
|
||||
import org.linphone.call.IncomingCallUITests
|
||||
import org.linphone.call.OutgoingCallUITests
|
||||
|
||||
@RunWith(Suite::class)
|
||||
@Suite.SuiteClasses(
|
||||
OutgoingCallUITests::class
|
||||
OutgoingCallUITests::class,
|
||||
IncomingCallUITests::class
|
||||
)
|
||||
class CallTestSuite
|
||||
|
|
|
|||
2
screport
2
screport
|
|
@ -1 +1 @@
|
|||
Subproject commit 4a66b0bda01e97e4b5b8c1bfd6389fa2dd1514fd
|
||||
Subproject commit a8f3e58a0043b40d57d0da925088fcfa5981f22f
|
||||
Loading…
Add table
Reference in a new issue