1
0
mirror of https://github.com/go-task/task.git synced 2025-11-23 22:24:45 +02:00

Include task name in log output

This commit is contained in:
George Pollard
2020-11-06 09:27:42 +13:00
committed by Andrey Nering
parent d44207dd7f
commit fe917affd2
3 changed files with 5 additions and 3 deletions

View File

@@ -626,7 +626,7 @@ func TestDry(t *testing.T) {
assert.NoError(t, e.Setup())
assert.NoError(t, e.Run(context.Background(), taskfile.Call{Task: "build"}))
assert.Equal(t, "task: touch file.txt", strings.TrimSpace(buff.String()))
assert.Equal(t, "task: [build] touch file.txt", strings.TrimSpace(buff.String()))
if _, err := os.Stat(file); err == nil {
t.Errorf("File should not exist %s", file)
}