Skip to content
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

Resources extension: TemporaryDirectory: Create a @SharedTempDir shorthand #649

Open
jbduncan opened this issue Jun 1, 2022 · 0 comments

Comments

@jbduncan
Copy link
Contributor

jbduncan commented Jun 1, 2022

At time of writing, we have a @Dir annotation (might be renamed to @TempDir soon) that allows temporary directories to be created in tests with minimal code.

We should consider having an equivalent for "shared" temporary directories. It should probably be named @SharedTempDir, but this is open to discussion.

Like #648, this would require a change in how ResourceExtension works, to allow annotations with an arguments field and which are indirectly/meta-annotated with @Shared(factory = TemporaryDirectory.class) to have their arguments read by the extension.

This issue is a follow-up to #348 | #491.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant