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:
committed by
Andrey Nering
parent
d44207dd7f
commit
fe917affd2
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user