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

Problem with use of @TestFactory and @TempDir #4886

Open
hmottestad opened this issue Jan 26, 2024 · 0 comments
Open

Problem with use of @TestFactory and @TempDir #4886

hmottestad opened this issue Jan 26, 2024 · 0 comments
Labels
🐞 bug issue is a bug
Milestone

Comments

@hmottestad
Copy link
Contributor

Using @TempFactory bypasses a lot of the lifecycle hooks in JUnit 5 which means that @TempDir is only instantiated once for the entire life of the test class, instead of for each test.

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

No branches or pull requests

1 participant