1
0
mirror of https://github.com/go-task/task.git synced 2025-06-17 00:17:51 +02:00

Enforce NO_COLOR=1 on tests to make sure it passes

Closes #459
Fixes #480
Ref #343
Ref fatih/color#137
This commit is contained in:
Andrey Nering
2021-05-30 22:48:48 -03:00
parent 7f92b7072d
commit 4e1f2ad017
4 changed files with 25 additions and 18 deletions

View File

@ -17,6 +17,10 @@ import (
"github.com/go-task/task/v3/taskfile"
)
func init() {
_ = os.Setenv("NO_COLOR", "1")
}
// fileContentTest provides a basic reusable test-case for running a Taskfile
// and inspect generated files.
type fileContentTest struct {