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:
22
task_test.go
22
task_test.go
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user