Commit 20375f64 authored by Andrew Gerrand's avatar Andrew Gerrand

cmd/go: document that -run=^$ skips all tests

Change-Id: I7bbdd9600e0d9a647aeea16f1ae9e42a4e0cf44d
Reviewed-on: https://go-review.googlesource.com/21823Reviewed-by: default avatarRob Pike <r@golang.org>
parent 2a415820
......@@ -1347,8 +1347,8 @@ control the execution of any test:
-bench regexp
Run benchmarks matching the regular expression.
By default, no benchmarks run. To run all benchmarks,
use '-bench .' or '-bench=.'.
By default, no benchmarks run.
To run all benchmarks, use '-bench=.'.
-benchmem
Print memory allocation statistics for benchmarks.
......@@ -1435,7 +1435,9 @@ control the execution of any test:
-run regexp
Run only those tests and examples matching the regular
expression.
expression. By default, all tests run.
To skip all tests, use a pattern that matches no test names,
such as '-run=^$'.
-short
Tell long-running tests to shorten their run time.
......
......@@ -126,8 +126,8 @@ control the execution of any test:
const testFlag2 = `
-bench regexp
Run benchmarks matching the regular expression.
By default, no benchmarks run. To run all benchmarks,
use '-bench .' or '-bench=.'.
By default, no benchmarks run.
To run all benchmarks, use '-bench=.'.
-benchmem
Print memory allocation statistics for benchmarks.
......@@ -214,7 +214,9 @@ const testFlag2 = `
-run regexp
Run only those tests and examples matching the regular
expression.
expression. By default, all tests run.
To skip all tests, use a pattern that matches no test names,
such as '-run=^$'.
-short
Tell long-running tests to shorten their run time.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment