diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-08-14 20:47:09 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-08-14 20:49:20 +1000 |
commit | b2ae651686c8f149c7b0bff6b98199afe6c7407f (patch) | |
tree | 9fa61839ba8552b477f9ead2029e58fad44becf0 /cmd | |
parent | e875d6b448bb70b937c82f740dfcf867de013bf3 (diff) |
add slow flag to integration tests
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/integration_test/main.go | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/cmd/integration_test/main.go b/cmd/integration_test/main.go index 492e5e19f..83321fc34 100644 --- a/cmd/integration_test/main.go +++ b/cmd/integration_test/main.go @@ -13,7 +13,7 @@ Usage: See https://github.com/jesseduffield/lazygit/tree/master/pkg/integration/README.md CLI mode: - > go run cmd/integration_test/main.go cli <test1> <test2> ... + > go run cmd/integration_test/main.go cli [--slow] <test1> <test2> ... If you pass no test names, it runs all tests Accepted environment variables: KEY_PRESS_DELAY (e.g. 200): the number of milliseconds to wait between keypresses @@ -40,7 +40,14 @@ func main() { case "help": fmt.Println(usage) case "cli": - clients.RunCLI(os.Args[2:]) + testNames := os.Args[2:] + slow := false + // get the next arg if it's --slow + if len(os.Args) > 2 && (os.Args[2] == "--slow" || os.Args[2] == "-slow") { + testNames = os.Args[3:] + slow = true + } + clients.RunCLI(testNames, slow) case "tui": clients.RunTUI() default: |