1 ! go test -json
2
3 stdout '"Action":"output","Package":"p","Test":"Test","Output":"=== RUN Test\\n","OutputType":"frame"'
4 stdout '"Action":"output","Package":"p","Test":"Test","Output":" x_test.go:6: Error1\\n","OutputType":"error"'
5 stdout '"Action":"output","Package":"p","Test":"Test","Output":" Error2\\n","OutputType":"error-continue"'
6 stdout '"Action":"output","Package":"p","Test":"Test","Output":"--- FAIL: Test \([\d.]+s\)\\n","OutputType":"frame"'
7
8 -- go.mod --
9 module p
10
11 -- x_test.go --
12 package p
13
14 import "testing"
15
16 func Test(t *testing.T) {
17 t.Error("Error1\nError2")
18 }
19
View as plain text