rakyll / gotest

go test with colors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add option to output Failues to stderr

TafThorne opened this issue · comments

Would you be open to a patch or know of a tool that parses the go test output and then splits text from a failing case to the stderr output?

I was looing for such a tool and found @rakyll's comments on:
golang/go#21944
I can see that keeping output syncronised within go test while producing stderr output would be hard but in this after tool everything from the start to the end of the failure would be already correctly serlialised.

My use case is that within a CI job I would like to retail the full go test -v output so we have a record of what was run but I would rather only have the Failure cases recorded in the terminal to make them very obvious. I would pipe the passing records to a log file for storage.