-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Introduce zero invocations in test templates and parameterized tests #3890
Conversation
Need this feature a lot! Is there a forecast for when it will be ready? |
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 very promising! 👍
...api/src/main/java/org/junit/jupiter/api/extension/TestTemplateInvocationContextProvider.java
Outdated
Show resolved
Hide resolved
...ter-engine/src/main/java/org/junit/jupiter/engine/descriptor/TestTemplateTestDescriptor.java
Outdated
Show resolved
Hide resolved
...api/src/main/java/org/junit/jupiter/api/extension/TestTemplateInvocationContextProvider.java
Outdated
Show resolved
Hide resolved
junit-jupiter-params/src/main/java/org/junit/jupiter/params/ParameterizedTestExtension.java
Outdated
Show resolved
Hide resolved
...api/src/main/java/org/junit/jupiter/api/extension/TestTemplateInvocationContextProvider.java
Outdated
Show resolved
Hide resolved
Updated `since` tag values, improved naming.
Updated `since` tag values, improved naming.
Make error messaging even more precise. Print out the provider class that did not return any template invocation contexts.
Let me know if you are ok with the latest change, I will do the rebase. |
Thanks for making the changes. I'll take it from here! |
Add a flag to ParameterizedTest to control arguments requirement. This allows users to explicitly opt out from validation of arguments set count and silently skip a test if no arguments are provided In general, support TestTemplateInvocationContextProvider returning zero invocation contexts. Such providers must override new interface method to indicate that the framework should expect "no context returned" Resolves junit-team#1477
@nskvortsov Thank you! 👍 |
Add a flag to ParameterizedTest to control arguments requirement. This allows users to explicitly opt out from validation of arguments set count and silently skip a test if no arguments are provided
In general, support TestTemplateInvocationContextProvider returning zero invocation contexts. Such providers must override new interface method to indicate that the framework should expect "no context returned"
Resolves #1477
Overview
Implemented the team decision described in this comment
I hereby agree to the terms of the JUnit Contributor License Agreement.
Definition of Done
@API
annotations