Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Registering Junit5 Extensions Automatically #652

Open
yschimke opened this issue Dec 8, 2024 · 1 comment
Open

Add support for Registering Junit5 Extensions Automatically #652

yschimke opened this issue Dec 8, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request junit-support Related to JUnit Support project

Comments

@yschimke
Copy link

yschimke commented Dec 8, 2024

The Junit5 support obviously supports @ExtendWith

AnnotationUtils.registerClassesFromAnnotationForReflection(testClass, registry, ExtendWith.class, ExtendWith::value);

But doesn't seem to support Registering Extensions Automatically

https://www.petrikainulainen.net/programming/testing/introduction-to-junit-5-extensions/

Setting

-Djunit.jupiter.extensions.autodetection.enabled=true

and

Registering the extension via META-INF/services

@yschimke yschimke added the enhancement New feature or request label Dec 8, 2024
@vjovanov vjovanov added the junit-support Related to JUnit Support project label Dec 16, 2024
@vjovanov
Copy link
Member

We are already working on this under #613. We will take this use-case into account as well. Thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request junit-support Related to JUnit Support project
Projects
None yet
Development

No branches or pull requests

3 participants