-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
New cop: Minitest/PrivateTestMethod
#220
Comments
I agree that this is probably out of the xUnit execution pattern. However, I'm not sure if that was intentional or a mistake by user. First of all, it may be better to specify it in Minitest Style Guide as it will become a stronger basis as a rule: |
I'd say that if the test name begins |
I think, we could also check for assertions inside that method. In this case it is 100% a mistake. |
Okay, It doesn't have to be checked inside the method. Note, |
While adding a new test case to a large codebase (
rails/rails
as an example) with its test files sometimes having thousands of lines of code and not following TDD (as I believe most of people do, mine included, except for bugfixes), it is very easy to add a test case to theprivate
class section. The test case won't be run and the developer will think that tests are passing.The text was updated successfully, but these errors were encountered: