Allow calling a task of the root Taskfile from within an included Taskfile

Fixes #161
This commit is contained in:
Andrey Nering
2019-02-02 21:12:57 -02:00
parent 310394aa60
commit 1dec956e99
7 changed files with 41 additions and 0 deletions

View File

@@ -511,3 +511,15 @@ func TestIncludesDependencies(t *testing.T) {
}
tt.Run(t)
}
func TestIncludesCallingRoot(t *testing.T) {
tt := fileContentTest{
Dir: "testdata/includes_call_root_task",
Target: "included:call-root",
TrimSpace: true,
Files: map[string]string{
"root_task.txt": "root task",
},
}
tt.Run(t)
}