Skip to content

Introduce @VertxTest annotation that is a JUnit5 archetype for VertxExtension holding test configuration.#162

Merged
vietj merged 1 commit intomasterfrom
vertx-test-annotation
Apr 6, 2026
Merged

Introduce @VertxTest annotation that is a JUnit5 archetype for VertxExtension holding test configuration.#162
vietj merged 1 commit intomasterfrom
vertx-test-annotation

Conversation

@vietj
Copy link
Copy Markdown
Member

@vietj vietj commented Apr 6, 2026

Motivation:

The recent introduction of @ReportHandlerFailures is actually configurable state for a test.

JUnit5 supports extension archetypes, so we can leverage this to make vertx test declaration more idiomatic and declare test configuration as well.

Changes:

  • Introduce @VertxTest annotation that declares the vertx extension
  • Replace @ReportHandlerFailures by instrumentVertx annotation member
  • Use JUnit BeforeAllCallback to hold the test configuration

…xtension holding test configuration.

Motivation:

The recent introduction of @ReportHandlerFailures is actually configurate state for a test.

JUnit5 supports extension archetypes, so we can leverage this to make vertx test declaration more idiomatic and declare test configuration as well.

Changes:

- Introduce @VertxTest annotation that declares the vertx extension
- Replace @ReportHandlerFailures by instrumentVertx annotation member
- Use JUnit BeforeAllCallback to hold the test configuration
@vietj vietj added this to the 5.1.0 milestone Apr 6, 2026
@vietj vietj merged commit ef25b23 into master Apr 6, 2026
4 checks passed
@vietj vietj deleted the vertx-test-annotation branch April 6, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant