-
Notifications
You must be signed in to change notification settings - Fork 9
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
feature request: add a -fail option that will cause gotestfmt to exit with a failing status code if any tests failed #33
Comments
🤦 I just saw the |
Hey @gabesullice thank you very much for your request. I would still consider your feature request as a "default behavior" since it is easy to miss the |
No, not at all :) |
@gabesullice thank you very much for reporting this, the default behavior starting version 2.3.0 will be to exit with a non-zero status if one or more tests fail. This behavior can be disabled with the |
Wow, thank you! That was fast :) open source FTW |
I have the following command in my GitHub Action:
I was surprised to see that my action was passing, even though I was sure that a test was failing. When I looked at the output, the test did fail.
That's because the action succeeded since
gotestfmt
exited0
.Would you consider adding an optional
-fail
flag that will causegotestfmt
to exit with a non-zero exit code if any test fails? That would allow most CI environments to catch failing tests without running them twice.For now, this is my workaround (ofc, maybe I'm being dumb and there's a much easier solution):
The text was updated successfully, but these errors were encountered: