[java] TestClassWithoutTestCases false positive with JUnit5 ParameterizedTest #2636
Labels
a:false-positive
PMD flags a piece of code that is not problematic
Milestone
Affects PMD Version: 6.10.0
Rule: TestClassWithoutTestCases
Description:
When a test class is extended from some parent class, the following check is triggered:
This class name ends with Test but contains no test cases (TestClassWithoutTestCases)
Probably its being misidentified as Junit 3.
Test class which has no parent works fine, but empty class is not producing an error too (probably worth a separate issue).
Expected outcome:
No error occurs when
@ParameterizedTest
is used inside a test class with a parent.The text was updated successfully, but these errors were encountered: