forked from jesseduffield/lazygit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
various changes to improve integration tests
- Loading branch information
1 parent
7b757d1
commit 7af7af2
Showing
103 changed files
with
2,879 additions
and
1,521 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,11 +58,11 @@ func RunTests( | |
for _, test := range tests { | ||
test := test | ||
|
||
paths := NewPaths( | ||
filepath.Join(testDir, test.Name()), | ||
) | ||
|
||
testWrapper(test, func() error { //nolint: thelper | ||
paths := NewPaths( | ||
filepath.Join(testDir, test.Name()), | ||
) | ||
|
||
return runTest(test, paths, projectRootDir, logf, runCmd, mode, keyPressDelay) | ||
}) | ||
} | ||
|
@@ -126,27 +126,14 @@ func buildLazygit() error { | |
} | ||
|
||
func createFixture(test *IntegrationTest, paths Paths) error { | ||
originalDir, err := os.Getwd() | ||
if err != nil { | ||
return err | ||
} | ||
|
||
if err := os.Chdir(paths.ActualRepo()); err != nil { | ||
panic(err) | ||
} | ||
|
||
shell := NewShell() | ||
shell := NewShell(paths.ActualRepo()) | ||
shell.RunCommand("git init -b master") | ||
shell.RunCommand(`git config user.email "[email protected]"`) | ||
shell.RunCommand(`git config user.name "CI"`) | ||
shell.RunCommand(`git config commit.gpgSign false`) | ||
|
||
test.SetupRepo(shell) | ||
|
||
if err := os.Chdir(originalDir); err != nil { | ||
panic(err) | ||
} | ||
|
||
return nil | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.