lundi 2 octobre 2017

No output until tests finish

I'm running my tests with 'go test -v ./...' and nothing is being piped to stdout/stderr until the tests finish. It seems that all output is being captured and is only displayed once the tests finish.

This is only an issue because I'm trying to use Travis CI and the build keeps failing due to a long running test. If nothing is logged in 10 minutes Travis assumes that the job is hung and kills it.

Is there a way to pipe the test output to stdout while the test is running?

Aucun commentaire:

Enregistrer un commentaire