diff --git a/spring-core-test/src/main/java/org/springframework/aot/test/agent/EnabledIfRuntimeHintsAgent.java b/spring-core-test/src/main/java/org/springframework/aot/test/agent/EnabledIfRuntimeHintsAgent.java index b89c4ed3289..413dd41ac1b 100644 --- a/spring-core-test/src/main/java/org/springframework/aot/test/agent/EnabledIfRuntimeHintsAgent.java +++ b/spring-core-test/src/main/java/org/springframework/aot/test/agent/EnabledIfRuntimeHintsAgent.java @@ -22,6 +22,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; +import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.condition.EnabledIf; import org.springframework.aot.agent.RuntimeHintsAgent; @@ -29,6 +30,8 @@ import org.springframework.aot.agent.RuntimeHintsAgent; /** * {@code @EneabledIfRuntimeHintsAgent} signals that the annotated test class or test method * is only enabled if the {@link RuntimeHintsAgent} is loaded on the current JVM. + *
This is meta-annotated with {@code @Tag("RuntimeHintsTests")} so that test suites + * can choose to target or ignore those tests. * *
* @EnabledIfRuntimeHintsAgent
@@ -58,5 +61,6 @@ import org.springframework.aot.agent.RuntimeHintsAgent;
@Documented
@EnabledIf(value = "org.springframework.aot.agent.RuntimeHintsAgent#isLoaded",
disabledReason = "RuntimeHintsAgent is not loaded on the current JVM")
+@Tag("RuntimeHintsTests")
public @interface EnabledIfRuntimeHintsAgent {
}