File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 1738
1738
// the package list would have to appear before -myflag, but could appear
1739
1739
// on either side of -v.
1740
1740
//
1741
+ // When 'go test' runs in package list mode, 'go test' caches successful
1742
+ // package test results to avoid unnecessary repeated running of tests. To
1743
+ // disable test caching, use any test flag or argument other than the
1744
+ // cacheable flags. The idiomatic way to disable test caching explicitly
1745
+ // is to use -count=1.
1746
+ //
1741
1747
// To keep an argument for a test binary from being interpreted as a
1742
1748
// known flag or a package name, use -args (see 'go help test') which
1743
1749
// passes the remainder of the command line through to the test binary
Original file line number Diff line number Diff line change @@ -385,6 +385,12 @@ flag not known to the go test command. Continuing the example above,
385
385
the package list would have to appear before -myflag, but could appear
386
386
on either side of -v.
387
387
388
+ When 'go test' runs in package list mode, 'go test' caches successful
389
+ package test results to avoid unnecessary repeated running of tests. To
390
+ disable test caching, use any test flag or argument other than the
391
+ cacheable flags. The idiomatic way to disable test caching explicitly
392
+ is to use -count=1.
393
+
388
394
To keep an argument for a test binary from being interpreted as a
389
395
known flag or a package name, use -args (see 'go help test') which
390
396
passes the remainder of the command line through to the test binary
You can’t perform that action at this time.
0 commit comments