-
Notifications
You must be signed in to change notification settings - Fork 8
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
suite-subtest-run: report on usage suite.T().Run
instead of suite.Run
#35
Comments
Hi, @ArtAndreev! Thank you for request. Could you provide the concrete example this concrete problems? 🙏 P.S. Why |
Hi! The problem occurs very rarely, it's hard to understand why it happens. It raises data race between tests, but the only I have just read CONTRIBUTING.md, looks like the unimplemented checks from it should be mentioned in README.md, so I wouldn't have raised this issue. Anyway, sorry for noise 🙂. |
Ah, already mentioned:
Sorry for noise. |
suite.T().Run
instead of suite.Run
suite.T().Run
instead of suite.Run
suite.T().Run
instead of suite.Run
suite.T().Run
instead of suite.Run
According to https://github.com/stretchr/testify/blob/db8608ed63f5bd9abdd03f669f5bb80569c114b6/suite/suite.go#L96
suite.Run
should be used for running subtests instead of directly running subtests withtesting.T
.I ran into some problems with invalid running subtests and want this linter to report such invalid usage.
The text was updated successfully, but these errors were encountered: