(t *testing.T)
| 1223 | } |
| 1224 | |
| 1225 | func TestIncludesIncorrect(t *testing.T) { |
| 1226 | t.Parallel() |
| 1227 | |
| 1228 | const dir = "testdata/includes_incorrect" |
| 1229 | |
| 1230 | var buff bytes.Buffer |
| 1231 | e := task.NewExecutor( |
| 1232 | task.WithDir(dir), |
| 1233 | task.WithStdout(&buff), |
| 1234 | task.WithStderr(&buff), |
| 1235 | task.WithSilent(true), |
| 1236 | ) |
| 1237 | |
| 1238 | err := e.Setup() |
| 1239 | require.Error(t, err) |
| 1240 | assert.Contains(t, err.Error(), "Failed to parse testdata/includes_incorrect/incomplete.yml:", err.Error()) |
| 1241 | } |
| 1242 | |
| 1243 | func TestIncludesMissingTaskfile(t *testing.T) { |
| 1244 | t.Parallel() |