Skip to content

Provide mechanism for managing resources across engines and executions #2816

@marcphilipp

Description

@marcphilipp

The Platform should provide an extensible mechanism (ServiceLoader?) so that user code can create "closeable resources" that are injected as part of the context received by TestEngine implementations.

This feature is analogous to the ExtensionContext.Store concept from Jupiter but takes it to the Platform level. Moreover, it allows to reuse the same resource across multiple executions in a LauncherSession. We should advocate that resources stored in such a key-value store be immutable until their destruction. If such resources implement AutoCloseable they will get closed immediately before the LauncherSession they belong to is closed.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions