Add flank/fladle to run UI tests

This commit is contained in:
William Brawner 2021-02-20 21:07:10 -07:00
parent 0028261847
commit 027ae86953
2 changed files with 15 additions and 0 deletions

View file

@ -4,6 +4,7 @@ apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'jacoco'
apply plugin: 'com.google.firebase.crashlytics'
apply plugin: "com.osacky.fladle"
def keystoreProperties = new Properties()
try {
@ -163,3 +164,16 @@ task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest']) {
'outputs/code-coverage/connected/*coverage.ec'
]))
}
fladle {
variant = 'playDebug'
useOrchestrator = true
environmentVariables = [
"clearPackageData": "true"
]
testTimeout = "7m"
devices = [
[ "model": "NexusLowRes", "version": "30" ]
]
projectId = 'simplemarkdown'
}

View file

@ -12,6 +12,7 @@ buildscript {
classpath 'com.google.gms:google-services:4.3.5'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.5.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.osacky.flank.gradle:fladle:0.14.1"
}
}