1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

run integration tests in parallel and properly cache windows build

This commit is contained in:
Jesse Duffield
2022-06-11 12:42:16 +10:00
parent 32c0b39dbd
commit 02c5559704
5 changed files with 89 additions and 31 deletions

View File

@ -7,34 +7,6 @@ import (
"github.com/stretchr/testify/assert"
)
func TestOSCommandRunWithOutput(t *testing.T) {
type scenario struct {
command string
test func(string, error)
}
scenarios := []scenario{
{
"echo -n '123'",
func(output string, err error) {
assert.NoError(t, err)
assert.EqualValues(t, "123", output)
},
},
{
"rmdir unexisting-folder",
func(output string, err error) {
assert.Regexp(t, "rmdir.*unexisting-folder.*", err.Error())
},
},
}
for _, s := range scenarios {
c := NewDummyOSCommand()
s.test(c.Cmd.New(s.command).RunWithOutput())
}
}
func TestOSCommandRun(t *testing.T) {
type scenario struct {
command string