kyoh86 / richgo

Enrich `go test` outputs with text decorations.
Other
846 stars 25 forks source link

Richgo testfilter will not create build for failing tests #33

Open eloo opened 3 years ago

eloo commented 3 years ago

Hi,

i'm trying to use richgo together with go-junit-report and use your recommendation but there is drawback i have found. With the command

go test ./... | tee >(richgo testfilter) | go-junit-report

your build will not fail (return status == 0). This is bit weird as with this step we don't have the option to stop build broken packages..

So far i have the following workaround

go test ./... | tee >(richgo testfilter) | go-junit-report; exit "$${PIPESTATUS[0]}"

Maybe this can be added to the docs?

kyoh86 commented 3 years ago

I don't have the confidence to describe them. I'm waiting your pull-request.