1
0
mirror of https://github.com/go-task/task.git synced 2025-11-29 22:48:03 +02:00

Add file path to YAML error message

This commit is contained in:
ronaudinho
2022-10-07 10:18:53 +00:00
parent fb0e43989d
commit 81de61d8db
4 changed files with 26 additions and 1 deletions

View File

@@ -838,6 +838,20 @@ func TestIncorrectVersionIncludes(t *testing.T) {
assert.EqualError(t, e.Setup(), expectedError)
}
func TestIncludesIncorrect(t *testing.T) {
const dir = "testdata/includes_incorrect"
var buff bytes.Buffer
e := task.Executor{
Dir: dir,
Stdout: &buff,
Stderr: &buff,
Silent: true,
}
assert.Error(t, e.Setup())
}
func TestIncludesEmptyMain(t *testing.T) {
tt := fileContentTest{
Dir: "testdata/includes_empty",