cmd/go: go test -parallel=1 (disable parallel tests?) output is confusing #18118
Labels
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
The tool behaves correctly but the output is misleading.
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?What did you do?
https://play.golang.org/p/uNOBr95MKU
then run
go test -v -parallel 1
What did you expect to see?
What did you see instead?
go test -v -parallel 1 === RUN TestA === RUN TestB === RUN TestC === RUN TestD === RUN TestE --- PASS: TestA (1.00s) foo_test.go:10: A --- PASS: TestD (1.00s) foo_test.go:28: D --- PASS: TestE (1.00s) foo_test.go:34: E --- PASS: TestC (1.00s) foo_test.go:22: C --- PASS: TestB (1.00s) foo_test.go:16: B PASS ok mcquay.me/ptest 5.011s
Note that it truly runs the tests serially, but the bunch of
===RUN
output at the beginning makes one think it's still running in parallel.The text was updated successfully, but these errors were encountered: