add new integration test pattern

This commit is contained in:
Jesse Duffield 2022-08-07 22:09:39 +10:00
parent c7f9d5801b
commit 77881a9c7d
154 changed files with 1514 additions and 670 deletions

View file

@ -16,6 +16,7 @@ import (
"github.com/jesseduffield/lazygit/pkg/config"
"github.com/jesseduffield/lazygit/pkg/env"
"github.com/jesseduffield/lazygit/pkg/gui/types"
"github.com/jesseduffield/lazygit/pkg/integration"
"github.com/jesseduffield/lazygit/pkg/logs"
"github.com/jesseduffield/lazygit/pkg/utils"
yaml "github.com/jesseduffield/yaml"
@ -150,6 +151,10 @@ func main() {
log.Fatal(err.Error())
}
if test, ok := integration.CurrentIntegrationTest(); ok {
test.SetupConfig(appConfig)
}
common, err := app.NewCommon(appConfig)
if err != nil {
log.Fatal(err)