1
0
mirror of https://github.com/go-task/task.git synced 2025-11-27 22:38:20 +02:00

Add tests, documentation and changelog for #666

This commit is contained in:
Andrey Nering
2022-02-19 18:24:43 -03:00
parent e94d1b6b9f
commit 51c6ebcd4d
9 changed files with 65 additions and 1 deletions

View File

@@ -856,6 +856,28 @@ func TestIncludesFromCustomTaskfile(t *testing.T) {
tt.Run(t)
}
func TestSupportedFileNames(t *testing.T) {
fileNames := []string{
"Taskfile.yml",
"Taskfile.yaml",
"Taskfile.dist.yml",
"Taskfile.dist.yaml",
}
for _, fileName := range fileNames {
t.Run(fileName, func(t *testing.T) {
tt := fileContentTest{
Dir: fmt.Sprintf("testdata/file_names/%s", fileName),
Target: "default",
TrimSpace: true,
Files: map[string]string{
"output.txt": "hello",
},
}
tt.Run(t)
})
}
}
func TestSummary(t *testing.T) {
const dir = "testdata/summary"