mirror of
https://github.com/go-task/task.git
synced 2025-11-23 22:24:45 +02:00
Write first test for including a Taskfile
This commit is contained in:
13
task_test.go
13
task_test.go
@@ -470,3 +470,16 @@ func TestDry(t *testing.T) {
|
||||
t.Errorf("File should not exist %s", file)
|
||||
}
|
||||
}
|
||||
|
||||
func TestIncludes(t *testing.T) {
|
||||
tt := fileContentTest{
|
||||
Dir: "testdata/includes",
|
||||
Target: "default",
|
||||
TrimSpace: true,
|
||||
Files: map[string]string{
|
||||
"main.txt": "main",
|
||||
"included.txt": "included",
|
||||
},
|
||||
}
|
||||
tt.Run(t)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user