| 1959 | } |
| 1960 | |
| 1961 | func TestShortTaskNotation(t *testing.T) { |
| 1962 | t.Parallel() |
| 1963 | |
| 1964 | const dir = "testdata/short_task_notation" |
| 1965 | |
| 1966 | var buff bytes.Buffer |
| 1967 | e := task.NewExecutor( |
| 1968 | task.WithDir(dir), |
| 1969 | task.WithStdout(&buff), |
| 1970 | task.WithStderr(&buff), |
| 1971 | task.WithSilent(true), |
| 1972 | ) |
| 1973 | require.NoError(t, e.Setup()) |
| 1974 | require.NoError(t, e.Run(t.Context(), &task.Call{Task: "default"})) |
| 1975 | assert.Equal(t, "string-slice-1\nstring-slice-2\nstring\n", buff.String()) |
| 1976 | } |
| 1977 | |
| 1978 | func TestDotenvShouldIncludeAllEnvFiles(t *testing.T) { |
| 1979 | t.Parallel() |