-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Parallel test linter #1503
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
Parallel test linter #1503
Conversation
Hey, thank you for opening your first Pull Request ! |
JFYI there is scopelint that checks incorrect usage of loop variables, but not only in tests. |
And don't forget to squash commits ;) |
8956257
to
ac14234
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Umm, how do get it merged? Is there a separate process for that? |
Nope, nothing else. But probably good to have a few more approvals when merging a new linter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hey, @kunwardeep — we just merged your PR to
By joining the team, you’ll be able to label issues, review pull requests, and merge approved pull requests. Thanks again! |
I don't see this in https://golangci-lint.run/usage/linters/ yet -- does it need to be added there? |
Not manually, but the |
@bombsimon thanks! Assumed it was automagic, just wanted to confirm (didn't know there was a delay). |
yeah.. I thought so too, but after reading this, this looks like a manual step. so here is another PR- https://github.com/golangci/golangci-lint/pull/1526/files |
This PR adds the paralleltest linter. This linter checks for incorrect usage of t.Parallel() in the tests. If the liner is enabled it will complain about each and every place we can use t.Parallel(). It also ensures that if we are using a range over test cases, we reinitialised the test case variable (More Info)