diff options
Diffstat (limited to 'pkg/integration/components/test.go')
-rw-r--r-- | pkg/integration/components/test.go | 42 |
1 files changed, 18 insertions, 24 deletions
diff --git a/pkg/integration/components/test.go b/pkg/integration/components/test.go index 7a088c80a..c837d8be8 100644 --- a/pkg/integration/components/test.go +++ b/pkg/integration/components/test.go @@ -35,11 +35,10 @@ type IntegrationTest struct { testDriver *TestDriver, keys config.KeybindingConfig, ) - gitVersion GitVersionRestriction - width int - height int - isDemo bool - useCustomPath bool + gitVersion GitVersionRestriction + width int + height int + isDemo bool } var _ integrationTypes.IntegrationTest = &IntegrationTest{} @@ -55,9 +54,9 @@ type NewIntegrationTestArgs struct { Run func(t *TestDriver, keys config.KeybindingConfig) // additional args passed to lazygit ExtraCmdArgs []string - // for when a test is flakey ExtraEnvVars map[string]string - Skip bool + // for when a test is flakey + Skip bool // to run a test only on certain git versions GitVersion GitVersionRestriction // width and height when running in headless mode, for testing @@ -67,10 +66,6 @@ type NewIntegrationTestArgs struct { Height int // If true, this is not a test but a demo to be added to our docs IsDemo bool - // If true, the test won't invoke lazygit with the --path arg. - // Useful for when we're passing --git-dir and --work-tree (because --path is - // incompatible with those args) - UseCustomPath bool } type GitVersionRestriction struct { @@ -130,19 +125,18 @@ func NewIntegrationTest(args NewIntegrationTestArgs) *IntegrationTest { } return &IntegrationTest{ - name: name, - description: args.Description, - extraCmdArgs: args.ExtraCmdArgs, - extraEnvVars: args.ExtraEnvVars, - skip: args.Skip, - setupRepo: args.SetupRepo, - setupConfig: args.SetupConfig, - run: args.Run, - gitVersion: args.GitVersion, - width: args.Width, - height: args.Height, - isDemo: args.IsDemo, - useCustomPath: args.UseCustomPath, + name: name, + description: args.Description, + extraCmdArgs: args.ExtraCmdArgs, + extraEnvVars: args.ExtraEnvVars, + skip: args.Skip, + setupRepo: args.SetupRepo, + setupConfig: args.SetupConfig, + run: args.Run, + gitVersion: args.GitVersion, + width: args.Width, + height: args.Height, + isDemo: args.IsDemo, } } |