On Thu, Jul 6, 2017 at 12:56 AM <buchanae.o...@gmail.com> wrote: > As far as I can tell, go test captures the output per-package, and when one test fails it dumps all the captured logs.
It's per test, not package. jnml@r550:~/tmp/test$ ls all_test.go jnml@r550:~/tmp/test$ cat all_test.go package foo import "testing" func Test1(t *testing.T) { // ok } func Test2(t *testing.T) { t.Fatal("a") t.Fatal("b") t.Fatal("c") } func Test3(t *testing.T) { // ok } jnml@r550:~/tmp/test$ go test --- FAIL: Test2 (0.00s) all_test.go:10: a FAIL exit status 1 FAIL _/home/jnml/tmp/test 0.003s jnml@r550:~/tmp/test$ -- -j -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.