Skip to content

TestTemplateInvocationContext should allow to set a testSourceUri #5593

@ThomasReinhardt

Description

@ThomasReinhardt

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

  • new method in TestTemplateInvocationContext: default Optional<URI> getTestSourceUri()

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions