cmd/go: test Documentation: Package List Parallelisation #36741
Labels
Documentation
Issues describing a change to documentation.
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
ran
go help test
which displays the go test documentationWhat did you expect to see?
While running
go test ./...
in a project with many subpackages, I noticed that integration tests in each subpackage were failing (randomly) when accessing a shared resource (such as a database).But if I ran the same code with
go test ./... -p 1
I see that my packages run in sequential order and the failures do not occur. I am happy with this outcome and I understand why parallelization is the default when running in this mode, but I feel that this behaviour could be explicitly highlighted in the documentation to avoid confusion.Right now the existing documentation comes close to covering this, but does not:
What did you see instead?
The documentation doesn't cover the topic that I want to understand.
Let me know if an example project is necessary to illustrate this concept better, or if I can provide any further detail in writing. I didn't want to post an issue straight away for this, but the issues channel in golang slack that I checked hasn't seen any activity since last year, which indicates that it's not very well used.
The text was updated successfully, but these errors were encountered: