pierrre/gotestcover

Exit status is not correct on failure

Closed this issue · 3 comments

The exit status is "0" on failure. So there is no way to tell if a test has failed.
I have a patch for this, but I just did a "hack in an exit status" and not well thought out because I needed it immediately. If you want I can do the PR.

This does not let the program exit with a different exit status. It just prints out that tests failed. A CI/Makefile still thinks that everything is OK on exit status 0. It must be != 0 on failure.

Ahhhh OK, i did not see that, thanks.