diff --git a/survey_test.go b/survey_test.go index 68c80eeb..d0d6230e 100644 --- a/survey_test.go +++ b/survey_test.go @@ -2,6 +2,7 @@ package survey import ( "errors" + "os/exec" "strings" "testing" "time" @@ -170,6 +171,10 @@ func TestPagination_lastHalf(t *testing.T) { } func TestAsk(t *testing.T) { + if _, err := exec.LookPath("vi"); err != nil { + t.Skip("vi not found in PATH") + } + tests := []struct { name string questions []*Question