mirror of
https://github.com/go-task/task.git
synced 2026-06-27 14:44:19 +00:00
Merge pull request #887 from ronaudinho/fix/yaml-error-msg
Add file path to YAML error message
This commit is contained in:
14
task_test.go
14
task_test.go
@@ -891,6 +891,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",
|
||||
|
||||
Reference in New Issue
Block a user