Skip to content

Introduce support for custom reason in @DisabledInAotMode #33833

@sbrannen

Description

@sbrannen

@DisabledInAotMode has a default disabled reason but currently does not provide a mechanism to add a custom reason.

However, almost all condition annotations provided by JUnit Jupiter (@Disabled, @DisabledOnOs, @DisabledForJreRange, etc.) provide an attribute to supply a custom reason. Thus, users of those annotations would likely expect @DisabledInAotMode to support a custom reason as well.

In addition, we already have over 50 places in our own test suite where we could make use of this feature.

Metadata

Metadata

Assignees

Labels

in: testIssues in the test moduletheme: aotAn issue related to Ahead-of-time processingtype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions