aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/test2json/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/test2json/main.go')
-rw-r--r--src/cmd/test2json/main.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cmd/test2json/main.go b/src/cmd/test2json/main.go
index dc033b1d5c..ff8cc9c8d5 100644
--- a/src/cmd/test2json/main.go
+++ b/src/cmd/test2json/main.go
@@ -41,6 +41,7 @@
// Test string
// Elapsed float64 // seconds
// Output string
+// OutputType string
// FailedBuild string
// }
//
@@ -85,6 +86,14 @@
// failed to build. This matches the ImportPath field of the "go list" output,
// as well as the BuildEvent.ImportPath field as emitted by "go build -json".
//
+// The OutputType field *may* be set for Action == "output" and indicates the
+// type of output. OutputType will be one of the following:
+//
+// (blank) - regular output
+// frame - test framing, such as "=== RUN ..." or "--- FAIL: ..."
+// error - an error produced by Error(f) or Fatal(f)
+// error-continue - continuation of a multi-line error
+//
// When a benchmark runs, it typically produces a single line of output
// giving timing results. That line is reported in an event with Action == "output"
// and no Test field. If a benchmark logs output or reports a failure