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

Reduce scope and surface area of TempDirectory extension #1752

Closed
7 tasks done
marcphilipp opened this issue Jan 27, 2019 · 7 comments
Closed
7 tasks done

Reduce scope and surface area of TempDirectory extension #1752

marcphilipp opened this issue Jan 27, 2019 · 7 comments

Comments

@marcphilipp
Copy link
Member

marcphilipp commented Jan 27, 2019

Since there are currently multiple issues (e.g. #864 and #1672) that might change how extensions that provide resources are written and registered, we should hide the implementation of @TempDir so we can easily change it in a future release.

Deliverables

  • Remove support for custom file systems, i.e. remove ParentDirProvider and TempDirContext.
  • Make @TempDir a top-level type.
  • Move appropriate Javadoc from TempDirectory to @TempDir.
  • Move TempDirectory to junit-jupiter-engine and make it package-private.
  • Register TempDirectory as a default extension.
  • Update existing documentation in User Guide.
  • Document breaking changes in Release Notes.
@sbrannen
Copy link
Member

sbrannen commented Jan 27, 2019

Let's consider relocating @TempDir to the org.junit.jupiter.api package as well.

@sbrannen sbrannen self-assigned this Jan 27, 2019
@sbrannen
Copy link
Member

in progress

sbrannen added a commit that referenced this issue Jan 27, 2019
In order to reduce the scope of the TempDirectory extension in JUnit
Jupiter 5.4, this commit removes the support for custom file systems
and temporary directory names by removing the ParentDirProvider and
TempDirContext APIs and corresponding factory methods.

Issue: #1752
@sbrannen
Copy link
Member

Update: 1st deliverable completed

@sbrannen
Copy link
Member

in progress

sbrannen added a commit that referenced this issue Jan 28, 2019
In order to simplify use of the TempDirectory extension in JUnit Jupiter
5.4, this commit moves the @tempdir annotation to a top-level type in a
new org.junit.jupiter.api.io package.

Issue: #1752
@sbrannen
Copy link
Member

Let's consider relocating @TempDir to the org.junit.jupiter.api package as well.

For the time being, I have moved the @TempDir annotation to a top-level type in a new org.junit.jupiter.api.io package.

sbrannen added a commit that referenced this issue Jan 28, 2019
In order to simplify use of @tempdir support in JUnit Jupiter 5.4, this
commit moves the TempDirectory extension to the Jupiter TestEngine
internals and registers it by default.

Consequently, users may now use @tempdir without having to register
an extension for it to work.

Issue: #1752
sbrannen added a commit that referenced this issue Jan 28, 2019
sbrannen added a commit that referenced this issue Jan 28, 2019
sbrannen added a commit that referenced this issue Jan 28, 2019
sbrannen added a commit that referenced this issue Jan 28, 2019
sbrannen added a commit that referenced this issue Jan 28, 2019
@sbrannen
Copy link
Member

Closing this issue since all deliverables have been completed in master.

@snicoll
Copy link

snicoll commented Jan 28, 2019

Register TempDirectory as a default extension.

That is very nice!

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

No branches or pull requests

3 participants