-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
QuarkusComponentTest: support parameterized test methods #38929
QuarkusComponentTest: support parameterized test methods #38929
Conversation
mkouba
commented
Feb 21, 2024
- arguments of a parameterized test method that are provided by an ArgumentsProvider must be annotated with SkipInject
- arguments of a parameterized test method that are provided by an ArgumentsProvider must be annotated with SkipInject
adf1e91
to
54a9ea3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but it makes me think about:
@RepeatedTest
(https://junit.org/junit5/docs/current/user-guide/#writing-tests-repeated-tests)@TestTemplate
(https://junit.org/junit5/docs/current/user-guide/#writing-tests-test-templates)@TestFactory
(https://junit.org/junit5/docs/current/user-guide/#writing-tests-dynamic-tests)
Out of these, at least @RepeatedTest
should work out of the box if we added the annotation to isTestMethod()
. The other two are likely more complex.
That's a good point. It's not a goal to support all features provied by JUnit though. @Ladicek would you care to add the |
Is there a reason why we keep the injection just to test methods? The |
I can tackle |
This comment has been minimized.
This comment has been minimized.
🙈 The PR is closed and the preview is expired. |
Added a commit for repeated tests support. Turns out we already ignored a parameter of type |
This could cause some lifecycle issues. For example, if |
Oh right, I didn't realize it's done differently from what we had on Weld 👍 |
Status for workflow
|
Status for workflow
|