1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-26 16:03:10 +03:00

working on integration tests working again

This commit is contained in:
Jesse Duffield
2021-04-05 09:38:16 +10:00
parent 32d170621c
commit 011451464f
17 changed files with 26 additions and 243 deletions

View File

@@ -197,9 +197,15 @@ func Test() error {
record := os.Getenv("RECORD_EVENTS") != ""
updateSnapshots := record || os.Getenv("UPDATE_SNAPSHOTS") != ""
for _, test := range tests[0:1] {
selectedTestName := os.Args[1]
for _, test := range tests {
test := test
if selectedTestName != "" && test.Name != selectedTestName {
continue
}
speeds := getTestSpeeds(test.Speed, updateSnapshots)
for i, speed := range speeds {