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
Update Tests to use new 'verifyXxxxxx' method or 'execute' that use inlined config in Input files #11446
Comments
I am on it, updating for AllSinglelineCommentsTest |
…yWithInlineConfigParser
…yWithInlineConfigParser
…yWithInlineConfigParser
…actModuleTestSupport#execute
Can I work on this issue |
Yes, select one, do comment "I am on ..." and send PR. |
Will be covered at #11408 |
…actModuleTestSupport#execute
…actModuleTestSupport#execute
@Rahulkhinchi03 Please give a look to this
It will be covering at #11408 it has been already mentioned by @romani , in conversation |
@Kevin222004 It was my mistake to open a PR on that. I am closing the PR. Thank you! |
@romani ping, please let me know if I am wrong |
Yes it should be updated to use execute method |
@romani @nick-mancuso Why does |
The “check” that I created it for was not a real check, we just needed to execute a fake check with no properties on code to count lines. We should not use this method for real checks, IMO. |
…acters Issue checkstyle#11446: Update checker test method testUnmappableCharacters using xml config
…acters Issue checkstyle#11446: Update checker test method testUnmappableCharacters using xml config
…acters Issue checkstyle#11446: Update checker test method testUnmappableCharacters using xml config
…d unused import
…d unused import
this is phase 2 of updates at #10390 (comment)
please see related commit to see how to update code and remove suppression line.
Test need to be updated:
FileSetCheckTest
AbstractFileSetCheckTest
DetailAstImplTest
TreeWalkerTest
CheckerTest
AllBlockCommentsTest
AbstractCheckTest
AllSinglelineCommentsTest
SuppressionCommentFilterTest
EmptyLineSeparatorCheckTest
SuppressWarningsHolderTest
ImportControlCheckTest
ImportOrderCheckTest
SuppressWithNearbyCommentFilterTest
CommentsIndentationCheckTest
SuppressionFilterTest
WriteTagCheckTest
AbstractJavadocCheckTest, covered by Issue #11446: Update AbstractJavadocCheckTest to use verifyWithInlineConfigParser #13951
RegexpCheck not all methods migrated, covered by Issue #14064: Regexp: violation pointing to line 0 while other Checks count first line as 1 #14057 attention to method
suppression that was added at #11441 should be reemoved.
each Test should be updated in separate PR to ease review.
all usages of
verify
method should be changed to verifyWithInlineConfigParser or similar method that use Inlined to Input file configs. If not possible update to useexecute
method when test expect exception during execution and checking of violation is not required. Review #13951 on how to use test modules(inner lcasses) from config.There are several test methods that create internal Check just to cover code by test and no verification of Java code, so
execute
method should be used insteadverify
.ATTENTION: if migration is done for class, remove it from pom.xml in
forbiddenapis-test
config.The text was updated successfully, but these errors were encountered: