Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
proposal: testing: run tests in parallel by default #21214
The testing framework of go is powerful, one of it's strong points is it's natural ability to run tests in parallel.
I can propose two ways to accept this change:
It would be very difficult to make this change with the existing testing package, as that would be certain to break many existing tests.
This might be something to consider in a new testing package, but I don't see any path from the current package to a place where tests are run in parallel by default.
I could imagine permitting people to say
Closing this issue.
Right, but as said in the proposal: one might forget it. and it is the same line wring over and over again. Also, when not used, race detection are less likely to happened.
What do you mean by "new testing package"?
Closing this means it won't be considered to what is called "Go2"?
For Go 2 it is possible that we could create a new testing package under a different import name. However, there are no current plans to do so.
Go 2 has to be largely backward compatible with Go 1. It can only break compatibility where necessary. This benefit of this change is not high enough.