Overview
Align TestTemplateInvocationContext with the capabilities of DynamicTest to allow for a custom testSourceUri. Right now DynamicTests created by a @TestFactory do not participate in the normal lifecycle with @BeforeEach etc.
A good solution often is to use @TestTemplate, but that misses the custom testSourceUri.
The change would be minimal and mostly consists of carrying the URI (or rather a TestSource instance) through a couple of contexts and descriptors. I can provide a working pull request if so desired.
Deliverables
Overview
Align
TestTemplateInvocationContextwith the capabilities ofDynamicTestto allow for a customtestSourceUri. Right nowDynamicTests created by a@TestFactorydo not participate in the normal lifecycle with@BeforeEachetc.A good solution often is to use
@TestTemplate, but that misses the customtestSourceUri.The change would be minimal and mostly consists of carrying the URI (or rather a
TestSourceinstance) through a couple of contexts and descriptors. I can provide a working pull request if so desired.Deliverables
TestTemplateInvocationContext:default Optional<URI> getTestSourceUri()