File tree 3 files changed +12
-2
lines changed 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,8 @@ and test commands:
84
84
-n
85
85
print the commands but do not run them.
86
86
-p n
87
- the number of builds that can be run in parallel.
87
+ the number of programs, such as build commands or
88
+ test binaries, that can be run in parallel.
88
89
The default is the number of CPUs available, except
89
90
on darwin/arm which defaults to 1.
90
91
-race
@@ -1420,6 +1421,10 @@ control the execution of any test:
1420
1421
Allow parallel execution of test functions that call t.Parallel.
1421
1422
The value of this flag is the maximum number of tests to run
1422
1423
simultaneously; by default, it is set to the value of GOMAXPROCS.
1424
+ Note that -parallel only applies within a single test binary.
1425
+ The 'go test' command may run tests for different packages
1426
+ in parallel as well, according to the setting of the -p flag
1427
+ (see 'go help build').
1423
1428
1424
1429
-run regexp
1425
1430
Run only those tests and examples matching the regular
Original file line number Diff line number Diff line change @@ -63,7 +63,8 @@ and test commands:
63
63
-n
64
64
print the commands but do not run them.
65
65
-p n
66
- the number of builds that can be run in parallel.
66
+ the number of programs, such as build commands or
67
+ test binaries, that can be run in parallel.
67
68
The default is the number of CPUs available, except
68
69
on darwin/arm which defaults to 1.
69
70
-race
Original file line number Diff line number Diff line change @@ -207,6 +207,10 @@ const testFlag2 = `
207
207
Allow parallel execution of test functions that call t.Parallel.
208
208
The value of this flag is the maximum number of tests to run
209
209
simultaneously; by default, it is set to the value of GOMAXPROCS.
210
+ Note that -parallel only applies within a single test binary.
211
+ The 'go test' command may run tests for different packages
212
+ in parallel as well, according to the setting of the -p flag
213
+ (see 'go help build').
210
214
211
215
-run regexp
212
216
Run only those tests and examples matching the regular
You can’t perform that action at this time.
0 commit comments