Skip to content

3.x: remove test from testXXX method names, create a validator. #6518

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

Closed
akarnokd opened this issue Jun 19, 2019 · 1 comment
Closed

3.x: remove test from testXXX method names, create a validator. #6518

akarnokd opened this issue Jun 19, 2019 · 1 comment

Comments

@akarnokd
Copy link
Member

A lot of test methods were named like testXXX in the 0.x-1.x era and we didn't want to change those for 2.x. Now is the time to get rid of the redundant naming from all test methods.

In addition, a validator should be added that checks all test Java files and reports if it finds the pattern void\s+test[a-zA-Z0-9] in any file. See this validator for an example of finding and checking source code files.

@akarnokd
Copy link
Member Author

Closing via #6525 & #6528.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant