]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: add document -json in testflag
author180909 <734461790@qq.com>
Mon, 16 Aug 2021 06:07:39 +0000 (06:07 +0000)
committerJay Conrod <jayconrod@google.com>
Mon, 16 Aug 2021 20:22:08 +0000 (20:22 +0000)
Fixes #47628

Change-Id: I2776fbc22d8a73ca7adc2cf7ad85669d57cc7eae
GitHub-Last-Rev: 826907b0797cdc25f921117e2ee44fc0dc2d21c3
GitHub-Pull-Request: golang/go#47683
Reviewed-on: https://go-review.googlesource.com/c/go/+/341991
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/internal/test/test.go

index 7f88d3216cf080a9573026997231cc608a801589..f919699627fc516746049ce3398e8384714f1c74 100644 (file)
 //     -failfast
 //         Do not start new tests after the first test failure.
 //
+//     -json
+//         Log verbose output and test results in JSON. This presents the
+//         same information as the -v flag in a machine-readable format.
+//
 //     -list regexp
 //         List tests, benchmarks, or examples matching the regular expression.
 //         No tests, benchmarks or examples will be run. This will only
index aeba80eb680d61f2b0d0419394f9fd2a7254bd42..ce8f226a969f1e58a2a350807323253b15a739fc 100644 (file)
@@ -242,6 +242,10 @@ control the execution of any test:
        -failfast
            Do not start new tests after the first test failure.
 
+       -json
+           Log verbose output and test results in JSON. This presents the
+           same information as the -v flag in a machine-readable format.
+
        -list regexp
            List tests, benchmarks, or examples matching the regular expression.
            No tests, benchmarks or examples will be run. This will only