Compare commits
1 Commits
1b33879b77
...
37cd7d5d8c
Author | SHA1 | Date | |
---|---|---|---|
37cd7d5d8c |
@ -45,6 +45,7 @@ jobs:
|
||||
script: |
|
||||
./gradlew androidApp:connectedAndroidTest
|
||||
killall -INT crashpad_handler || true
|
||||
./gradlew androidApp:fetchScreenshots
|
||||
- uses: actions/upload-artifact@v3
|
||||
if: failure()
|
||||
with:
|
||||
|
@ -261,30 +261,16 @@ val createScreenshotDirectoryTask =
|
||||
commandLine = listOf("adb", "shell", "mkdir", "-p", "/sdcard/Pictures/selfoss_tests")
|
||||
}
|
||||
|
||||
val fetchScreenshotsTask =
|
||||
tasks.register<Exec>("fetchScreenshots") {
|
||||
println("AMINE : fetch")
|
||||
group = "reporting"
|
||||
executable(android.adbExecutable.toString())
|
||||
commandLine = listOf("adb", "pull", "/sdcard/Pictures/selfoss_tests/.", reportsDirectory.toString())
|
||||
tasks.register<Exec>("fetchScreenshots") {
|
||||
println("AMINE : fetch")
|
||||
group = "reporting"
|
||||
executable(android.adbExecutable.toString())
|
||||
commandLine = listOf("adb", "pull", "/sdcard/Pictures/selfoss_tests/.", reportsDirectory.toString())
|
||||
|
||||
finalizedBy(clearScreenshotsTask)
|
||||
dependsOn(createScreenshotDirectoryTask)
|
||||
finalizedBy(clearScreenshotsTask)
|
||||
dependsOn(createScreenshotDirectoryTask)
|
||||
|
||||
doFirst {
|
||||
reportsDirectory.mkdirs()
|
||||
}
|
||||
doFirst {
|
||||
reportsDirectory.mkdirs()
|
||||
}
|
||||
|
||||
tasks.whenTaskAdded {
|
||||
if (this.name == "connectedGithubConfigDebugAndroidTest") {
|
||||
this.finalizedBy(fetchScreenshotsTask)
|
||||
}
|
||||
/* if (this.name == "mergeGithubConfigDebugResources" ||
|
||||
this.name == "packageGithubConfigDebugResources" ||
|
||||
this.name == "mapGithubConfigDebugSourceSetPaths" ||
|
||||
this.name == "extractDeepLinksGithubConfigDebug"
|
||||
) {
|
||||
this.dependsOn("prepareLibraryDefinitionsGithubConfigDebug")
|
||||
}*/
|
||||
}
|
||||
|
@ -93,9 +93,9 @@ class SettingsActivityTest : WithANRException() {
|
||||
onView(withText(R.string.translation)).check(matches(isDisplayed()))
|
||||
}
|
||||
|
||||
/* @Test
|
||||
fun testAbout() {
|
||||
onView(withText(R.string.action_about)).perform(click())
|
||||
onView(withText("ACRA")).check(matches(isDisplayed()))
|
||||
}*/
|
||||
@Test
|
||||
fun testAbout() {
|
||||
onView(withText(R.string.action_about)).perform(click())
|
||||
onView(withText("ACRA")).check(matches(isDisplayed()))
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user