-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
t.Parallel() #107
Comments
@kaihendry If you'd like to add this as a feature, feel free to submit a PR, and I will approve it. |
Hello, @zolotov! With this feature merged into the func TestGroupedParallel(t *testing.T) {
for _, tc := range tests {
tc := tc // capture range variable
t.Run(tc.Name, func(t *testing.T) {
t.Parallel()
...
})
}
} Motivation: it's always safer to capture for loop range variables. If someone later on decided to run subtest as Parallel, there would be one less chance to miss the mentioned |
@skovtunenko Hi! I don't think it relates to |
Can these tests be generated to be run in parallel?
https://twitter.com/peterbourgon/status/1169414085097607168
The text was updated successfully, but these errors were encountered: