I am testing my Quarkus application, and I would like to ignore some of my tests.
The test class is annotated with @io.quarkus.test.junit.QuarkusTest
, and each method with @org.junit.jupiter.api.Test
I'm trying to use the @org.junit.Ignore
annotation, but it's not working, the ignored tests are executed anyway.
This is the code:
@QuarkusTest
@TestHTTPEndpoint(MyResource::class)
class MyResourceTest {
@Test
@Ignore
fun `to be ignored`() {
assertTrue(false)
}
}
Does anyone know how can I achieve this?
You can use @Disabled
annotation
You can also conditionally run tests with assumptions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With