-
Notifications
You must be signed in to change notification settings - Fork 119
/
Copy pathDebug.kt
36 lines (32 loc) · 1.09 KB
/
Debug.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@file:Suppress("InvalidPackageDeclaration")
import ftl.presentation.cli.MainCommand
import ftl.reports.startDurationMeasurement
import ftl.run.exception.withGlobalExceptionHandling
import picocli.CommandLine
import java.io.File
fun main() {
println(File("").absolutePath)
// GoogleApiLogger.logAllToStdout()
// for debugging. Run test from IntelliJ IDEA
// run "gradle check" to generate required fixtures
val projectId = System.getenv("GOOGLE_CLOUD_PROJECT")
?: "YOUR PROJECT ID"
withGlobalExceptionHandling {
startDurationMeasurement()
CommandLine(MainCommand()).execute(
// "--debug",
"firebase",
"test",
"android",
"run",
// "--dry",
// "--dump-shards",
"--output-style=single",
// "--full-junit-result",
// "--legacy-junit-result",
"-c=./test_runner/src/test/kotlin/ftl/fixtures/test_app_cases/flank-single-success.yml",
"--project=$projectId"
// "--client-details=key1=value1,key2=value2"
)
}
}