Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelpasterz committed Oct 1, 2020
1 parent e4b1e1f commit cd22c9b
Showing 1 changed file with 47 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ class SanityWithAutoConfigureTest {
] })
flakyTestAttempts.set(3)
}
oranges {
useOrchestrator.set(false)
testTargets.set(project.provider { [
"class com.osacky.flank.gradle.sample.ExampleInstrumentedTest#runAndFail"
] })
flakyTestAttempts.set(6)
}
}
}
"""
Expand Down Expand Up @@ -154,6 +161,46 @@ class SanityWithAutoConfigureTest {
output-style: single
""".trimIndent()
)

val orangesResult = gradleRun(
projectDir = testProjectRoot.root,
arguments = listOf("printYmlOranges")
)

assertThat(orangesResult.output).contains("BUILD SUCCESSFUL")
assertThat(orangesResult.output).containsMatch(
"""
gcloud:
app: [0-9a-zA-Z\/_]*/build/outputs/apk/debug/[0-9a-zA-Z\/_]*-debug.apk
test: [0-9a-zA-Z\/_]*/build/outputs/apk/androidTest/debug/[0-9a-zA-Z\/_]*-debug-androidTest.apk
device:
- model: Pixel2
version: 26
- model: Nexus5
version: 23
use-orchestrator: false
auto-google-login: false
record-video: true
performance-metrics: true
timeout: 15m
environment-variables:
clearPackageData: true
test-targets:
- class com.osacky.flank.gradle.sample.ExampleInstrumentedTest#runAndFail
num-flaky-test-attempts: 6
flank:
smart-flank-gcs-path: gs://test-lab-yr9w6qsdvy45q-iurp80dm95h8a/flank/test_app_android.xml
keep-file-path: false
ignore-failed-tests: false
disable-sharding: false
smart-flank-disable-upload: false
legacy-junit-result: false
full-junit-result: false
output-style: single
""".trimIndent()
)
}

@Test
Expand Down

0 comments on commit cd22c9b

Please sign in to comment.