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: Allow custom parent directory #558

Open
jbduncan opened this issue Dec 12, 2021 · 0 comments
Open

Comments

@jbduncan
Copy link
Contributor

jbduncan commented Dec 12, 2021

Consider introducing the ability to change where our TemporaryDirectory writes its temporary directories to. Currently it writes all directories to the filesystem path in the java.io.tmpdir system property. Users can adjust the property in their build tool or directly in their tests, but the build tool approach isn't the most flexible, and the direct approach wouldn't allow the affected tests to run in parallel, I'd imagine.

junit-pioneer used to have a TempDirectory class with this ability, but it was removed because the built-in JUnit 5 TempDir was superior in almost every way.

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

Relevant JUnit 5 issues:

Docs for the old TempDirectory extension: https://github.com/junit-pioneer/junit-pioneer/blob/1415785e909f82066df2bd2b5ccfa10396aab0a0/docs/temp-directory.adoc

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