-
Notifications
You must be signed in to change notification settings - Fork 67
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
Consider cut
as default name
#369
Comments
if the class under test is hidden in a For instance: METHOD Test.
Given( ... )
When( ... )
Then( ... )
ENDMETHOD. METHOD When.
cut-> ...
ENDMETHOD. |
Isn't this check contrary to the style guide? It recommends a meaningful name or |
The idea here is to provide an automated way to support the team that follows the Personally, I had bad experiences following the 'meaningful names' as it depends on the developer's perspective. It can be meaningful to me, but it cannot to someone else. Besides, if the class under test has dependencies (objects), it is not that easy to find the real class under test between the other instances. Therefore, I prefer the Feel free to share your perspective as well. :) |
Thanks, that makes sense. The guide clearly suggests Personally I am a little uncomfortable with that too and also usually prefer |
Then, it could find the |
Based on Name the code under test meaningfully, or default to CUT, a new Check object could scan test classes for
CUT
.If it does not find it, it could recommend the developer to use the default name instead.
The text was updated successfully, but these errors were encountered: