-
-
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
@TestFactory methods should evaluate ContainerExecutionCondition extensions instead of TestExecutionCondition extensions #625
Comments
Good catch! 👍 |
The problem with making such a change is that extensions for Consequently, such extensions would no longer have access to instance state (i.e., fields that may have been initialized or injected). In other words, such a change would reduce the scope of what such extensions can do. @junit-team/junit-lambda, let's discuss the pros and cons. |
This issue has become obsolete since [Container|Test]ExtensionContext have been merged into ExtensionContext in #901. |
Currently,
@TestFactory
nodes provide aTestExtensionContext
and evaluateTestExecutionConditions
. Since they are containers they should rather provide aContainerExtensionContext
and evaluateContainerExecutionConditions
.Implementation Note
After changing this,
JupiterTestDescriptor
can implementshouldBeSkipped
like this:The text was updated successfully, but these errors were encountered: