Compare commits

...

2 Commits

Author SHA1 Message Date
Jesse Duffield
e5e3cc200e fix test names 2023-04-14 20:24:35 +10:00
Jesse Duffield
8e4efddbf7 ensure test list is correct in CI 2023-04-14 20:21:55 +10:00
5 changed files with 10 additions and 6 deletions

View File

@@ -135,6 +135,10 @@ jobs:
# ensure our vendor directory matches up with our go modules
run: |
go mod vendor && git diff --exit-code || (echo "Unexpected change to vendor directory. Run 'go mod vendor' locally and commit the changes" && exit 1)
- name: Check Integration Tests List
# ensure our tests list matches up with our generator's output
run: |
go generate pkg/integration/tests/tests.go && git diff --exit-code || (echo "Unexpected change to tests list. Run 'go generate pkg/integration/tests/tests.go' locally and commit the changes" && exit 1)
lint:
runs-on: ubuntu-latest
env:

View File

@@ -5,7 +5,7 @@ import (
. "github.com/jesseduffield/lazygit/pkg/integration/components"
)
var BasicCmdAtRuntime = NewIntegrationTest(NewIntegrationTestArgs{
var BasicAtRuntime = NewIntegrationTest(NewIntegrationTestArgs{
Description: "Using a custom command provided at runtime to create a new file",
ExtraCmdArgs: "",
Skip: false,

View File

@@ -5,7 +5,7 @@ import (
. "github.com/jesseduffield/lazygit/pkg/integration/components"
)
var OmitFromHistory = NewIntegrationTest(NewIntegrationTestArgs{
var BasicAtRuntimeHistory = NewIntegrationTest(NewIntegrationTestArgs{
Description: "Omitting a runtime custom command from history if it begins with space",
ExtraCmdArgs: "",
Skip: false,

View File

@@ -5,7 +5,7 @@ import (
. "github.com/jesseduffield/lazygit/pkg/integration/components"
)
var BasicCmdFromConfig = NewIntegrationTest(NewIntegrationTestArgs{
var BasicFromConfig = NewIntegrationTest(NewIntegrationTestArgs{
Description: "Using a custom command to create a new file",
ExtraCmdArgs: "",
Skip: false,

View File

@@ -64,9 +64,9 @@ var tests = []*components.IntegrationTest{
conflicts.ResolveExternally,
conflicts.ResolveMultipleFiles,
conflicts.UndoChooseHunk,
custom_commands.BasicCmdFromConfig,
custom_commands.BasicCmdAtRuntime,
custom_commands.OmitFromHistory,
custom_commands.BasicAtRuntime,
custom_commands.BasicAtRuntimeHistory,
custom_commands.BasicFromConfig,
custom_commands.FormPrompts,
custom_commands.MenuFromCommand,
custom_commands.MenuFromCommandsOutput,