diff options
Diffstat (limited to 'src/cmd/gotest')
-rw-r--r-- | src/cmd/gotest/doc.go | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/cmd/gotest/doc.go b/src/cmd/gotest/doc.go index 40c40fc1f..581eaaab9 100644 --- a/src/cmd/gotest/doc.go +++ b/src/cmd/gotest/doc.go @@ -20,7 +20,7 @@ They should have signature func TestXXX(t *testing.T) { ... } Benchmark functions can be written as well; they will be run only -when the -benchmarks flag is provided. Benchmarks should have +when the -test.bench flag is provided. Benchmarks should have signature func BenchmarkXXX(b *testing.B) { ... } @@ -42,15 +42,15 @@ The resulting binary, called (for amd64) 6.out, has a couple of arguments. Usage: - 6.out [-v] [-match pattern] [-benchmarks pattern] - -The -v flag causes the tests to be logged as they run. The -match -flag causes only those tests whose names match the regular expression -pattern to be run. By default all tests are run silently. If all -the specified test pass, 6.out prints PASS and exits with a 0 exit -code. If any tests fail, it prints FAIL and exits with a non-zero -code. The -benchmarks flag is analogous to the -match flag, but -applies to benchmarks. No benchmarks run by default. + 6.out [-test.v] [-test.run pattern] [-test.bench pattern] + +The -test.v flag causes the tests to be logged as they run. The +-test.run flag causes only those tests whose names match the regular +expression pattern to be run. By default all tests are run silently. +If all the specified test pass, 6.out prints PASS and exits with a 0 +exit code. If any tests fail, it prints FAIL and exits with a +non-zero code. The -test.bench flag is analogous to the -test.run +flag, but applies to benchmarks. No benchmarks run by default. */ package documentation |