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