1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-26 05:37:18 +02:00

Rename test/results to test/_results (#3012)

This commit is contained in:
Stefan Haller 2023-09-18 10:14:43 +02:00 committed by GitHub
commit bc00aeb10d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

2
.gitignore vendored
View File

@ -35,7 +35,7 @@ lazygit.exe
test/git_server/data test/git_server/data
test/results/** test/_results/**
oryxBuildBinary oryxBuildBinary
__debug_bin __debug_bin

View File

@ -50,7 +50,7 @@ The name of a test is based on its path, so the name of the test at `pkg/integra
You can pass the INPUT_DELAY env var to the test runner in order to set a delay in milliseconds between keypresses or mouse clicks, which helps for watching a test at a realistic speed to understand what it's doing. Or you can pass the '--slow' flag which sets a pre-set 'slow' key delay. In the tui you can press 't' to run the test in slow mode. You can pass the INPUT_DELAY env var to the test runner in order to set a delay in milliseconds between keypresses or mouse clicks, which helps for watching a test at a realistic speed to understand what it's doing. Or you can pass the '--slow' flag which sets a pre-set 'slow' key delay. In the tui you can press 't' to run the test in slow mode.
The resultant repo will be stored in `test/results`, so if you're not sure what went wrong you can go there and inspect the repo. The resultant repo will be stored in `test/_results`, so if you're not sure what went wrong you can go there and inspect the repo.
### Running tests in VSCode ### Running tests in VSCode

View File

@ -153,7 +153,7 @@ func RunTUI() {
return nil return nil
} }
cmd := exec.Command("sh", "-c", fmt.Sprintf("code test/results/%s", currentTest.Name())) cmd := exec.Command("sh", "-c", fmt.Sprintf("code test/_results/%s", currentTest.Name()))
if err := cmd.Run(); err != nil { if err := cmd.Run(); err != nil {
return err return err
} }

View File

@ -3,9 +3,9 @@ package components
import "path/filepath" import "path/filepath"
// convenience struct for easily getting directories within our test directory. // convenience struct for easily getting directories within our test directory.
// We have one test directory for each test, found in test/results. // We have one test directory for each test, found in test/_results.
type Paths struct { type Paths struct {
// e.g. test/results/test_name // e.g. test/_results/test_name
root string root string
} }

View File

@ -39,7 +39,7 @@ func RunTests(
return err return err
} }
testDir := filepath.Join(projectRootDir, "test", "results") testDir := filepath.Join(projectRootDir, "test", "_results")
if err := buildLazygit(); err != nil { if err := buildLazygit(); err != nil {
return err return err