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
SpringJUnit5Check could be updated to consider all testable methods (e.g., @RepeatedTest, @ParameterizedTest, @TestFactory, and @TestTemplate) in addition to @Test methods.
The text was updated successfully, but these errors were encountered:
@RepeatedTest and @ParameterizedTest are meta-annotated with @TestTemplate.
So if com.puppycrawl.tools.checkstyle.utils.AnnotationUtilfinds meta-annotations, there would then be no need to search for explicitly for @RepeatedTest and @ParameterizedTest.
Actually, since the use of JUnit Jupiter annotations as meta-annotations will likely become more common over time, finding such meta-annotations would be a good idea anyway. For example, I often create custom composed annotations for @ParameterizedTest and a particular argument source (e.g., @MethodSource).
Edit: at a glance, it looks like AnnotationUtil does not search recursively for meta-annotations.
philwebb
changed the title
Consider supporting JUnit Jupiter "test" methods other than @Test
Support additional JUnit Jupiter annotations
Dec 3, 2019
SpringJUnit5Check
could be updated to consider all testable methods (e.g.,@RepeatedTest
,@ParameterizedTest
,@TestFactory
, and@TestTemplate
) in addition to@Test
methods.The text was updated successfully, but these errors were encountered: