Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to ignore a quarkus test

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?

like image 350
Federico Bellini Avatar asked Sep 06 '25 03:09

Federico Bellini


1 Answers

You can use @Disabled annotation

You can also conditionally run tests with assumptions.

like image 63
ferrouskid Avatar answered Sep 07 '25 21:09

ferrouskid