Teaching gotestsum to recognize Golang cache debug output. When gocachehash=1 or gocachetest=1 debug options are enabled, output is sent to stderr. gotestum treats unrecognised stderr messages as errors what makes test suite run marked as failed.
Example of testing gotestsum repository without this PR. Each debug info line is treated as error:
Teaching
gotestsum
to recognize Golang cache debug output. Whengocachehash=1
orgocachetest=1
debug options are enabled, output is sent tostderr
.gotestum
treats unrecognisedstderr
messages as errors what makes test suite run marked as failed.Example of testing
gotestsum
repository without this PR. Each debug info line is treated as error:After fixing the issue: