Package io.quarkus.test.junit
Annotation Type DisabledOnIntegrationTest
-
@Target({TYPE,METHOD}) @Retention(RUNTIME) @Documented @Inherited public @interface DisabledOnIntegrationTest
@DisabledOnIntegrationTest
is used to signal that the annotated test class or test method should not be executed for as part of aQuarkusIntegrationTest
.@DisabledOnIntegrationTest
may optionally be declared with a reason to document why the annotated test class or test method is disabled.When applied at the class level, all test methods within that class are automatically disabled.
When applied at the method level, the presence of this annotation does not prevent the test class from being instantiated. Rather, it prevents the execution of the test method and method-level lifecycle callbacks such as
@BeforeEach
methods,@AfterEach
methods, and corresponding extension APIs.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description DisabledOnIntegrationTest.ArtifactType[]
forArtifactTypes
The types of Quarkus application produced by the build for which this test is disabled.String
value
Reason for disabling this test
-
-
-
Element Detail
-
value
String value
Reason for disabling this test- Default:
- ""
-
-
-
forArtifactTypes
DisabledOnIntegrationTest.ArtifactType[] forArtifactTypes
The types of Quarkus application produced by the build for which this test is disabled. For example, if the tests are supposed to be disabled for built containers only,ArtifactType.CONTAINER
would be set.- Default:
- {io.quarkus.test.junit.DisabledOnIntegrationTest.ArtifactType.ALL}
-
-