Quarkus tests inheritance not allowed?

Viewed 69

Moving some common annotations from a test class to a base one just doesn't work in Quarkus, is this intended or I'm missing something?

This works:

@QuarkusTest
@TestProfile(FunctionalTestProfile.class)
class FrontendControllerTest {...}

This doesn't work:

@QuarkusTest
@TestProfile(FunctionalTestProfile.class)
public class BaseFunctionalTest {}

class FrontendControllerTest extends BaseFunctionalTest {...}

Annotations just don't get applied to child classes

1 Answers

The @QuarkusTest and @TestProfile annotations are not declared @Inherited, so this should not be expected to work.

Related