Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Richgo testfilter will not create build for failing tests #33

Open
eloo opened this issue Mar 4, 2021 · 1 comment
Open

Richgo testfilter will not create build for failing tests #33

eloo opened this issue Mar 4, 2021 · 1 comment
Assignees

Comments

@eloo
Copy link

eloo commented Mar 4, 2021

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
Copy link
Owner

kyoh86 commented Apr 8, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants