NewCliOutput creates a new OutputWriter with a stdout writer
(color bool)
| 20 | |
| 21 | // NewCliOutput creates a new OutputWriter with a stdout writer |
| 22 | func NewCliOutput(color bool) OutputWriter { |
| 23 | au := aurora.NewAurora(color) |
| 24 | if run.GOOS == "windows" { |
| 25 | au = aurora.NewAurora(false) |
| 26 | } |
| 27 | |
| 28 | t := newCliTemplate() |
| 29 | |
| 30 | return OutputWriter{ |
| 31 | out: os.Stdout, |
| 32 | au: au, |
| 33 | template: t, |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | // TestResult for output |
| 38 | type TestResult struct { |