You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[java] TestClassWithoutTestCases: False positive for test classes extending a class with tests (in nested classes) #5011
Description:
In PMD 6 this was no issue, now in PMD 7 a nested test class is now detected as TestClassWithoutTestCases. I guess previously the class was not detected as test class at all. Now it is detected, and yes it actually has no tests, but they are on the super class.
Expected outcome:
No violations, as the super class actually has test cases
[INFO] PMD Failure: works.reload.recore.util.operations:22 Rule:TestClassWithoutTestCases Priority:3 The class 'operations' might be a test class, but it contains no test cases..
changed the title [-]TestClassWithoutTestCases - false-positive for test classes extending a class with tests (in nested classes)[/-][+][java] TestClassWithoutTestCases - false-positive for test classes extending a class with tests (in nested classes)[/+]on May 13, 2024
changed the title [-][java] TestClassWithoutTestCases - false-positive for test classes extending a class with tests (in nested classes)[/-][+][java] TestClassWithoutTestCases: False positive for test classes extending a class with tests (in nested classes)[/+]on Jun 29, 2026
Activity
[-]TestClassWithoutTestCases - false-positive for test classes extending a class with tests (in nested classes)[/-][+][java] TestClassWithoutTestCases - false-positive for test classes extending a class with tests (in nested classes)[/+][java] Fix pmd#5011: TestClassWithoutTestCases
[java] Fix pmd#5011: TestClassWithoutTestCases
[java] Fix pmd#5011: TestClassWithoutTestCases
[-][java] TestClassWithoutTestCases - false-positive for test classes extending a class with tests (in nested classes)[/-][+][java] TestClassWithoutTestCases: False positive for test classes extending a class with tests (in nested classes)[/+][java] Fix #5011: Fix FP in TestClassWithoutTestCases when the only t…