You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to the target=SELF|CHILDREN attribute added to @ResourceLock in #3102, the @Execution annotation should also receive such an attribute to support the following use cases.
Class level
In this case, using target=CHILDREN would have the same effect as declaring @Execution on every @Test method of the test class.
Annotations on test methods should override annotations on the class level. Therefore, test2 from the following example should use SAME_THREAD while test1 should use CONCURRENT.
In this case, using target=CHILDREN would unlock a new use case, namely to be able to use a different ExecutionMode for the invocations of a test template or the dynamic tests of a test factory than for the test template/factory container node.
Similar to the
target=SELF|CHILDREN
attribute added to@ResourceLock
in #3102, the@Execution
annotation should also receive such an attribute to support the following use cases.Class level
In this case, using
target=CHILDREN
would have the same effect as declaring@Execution
on every@Test
method of the test class.would be equivalent to
Annotations on test methods should override annotations on the class level. Therefore,
test2
from the following example should useSAME_THREAD
whiletest1
should useCONCURRENT
.@TestTemplate
and@TestFactory
methodsIn this case, using
target=CHILDREN
would unlock a new use case, namely to be able to use a differentExecutionMode
for the invocations of a test template or the dynamic tests of a test factory than for the test template/factory container node.Related issues
Deliverables
target
attribute and evaluate it when computing theExecutionMode
of a childTestDescriptor
The text was updated successfully, but these errors were encountered: