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

Extensions have to be stateless #5

Closed
asarkar opened this issue Aug 14, 2020 · 0 comments · Fixed by #6
Closed

Extensions have to be stateless #5

asarkar opened this issue Aug 14, 2020 · 0 comments · Fixed by #6
Assignees
Labels
bug Something isn't working
Milestone

Comments

@asarkar
Copy link
Owner

asarkar commented Aug 14, 2020

From JUnit 5 Extension Model:

The engine makes no guarantees when it instantiates extensions and how long it keeps instances around. This has a number of reasons:

It is not clear when and how extensions should be instantiated. (For each test? For each class? For each run?)
Jupiter does not want to bother tracking extension instances.
If extensions were to communicate with one another, a mechanism for exchanging data would be required anyways.
Hence, extensions have to be stateless. Any state they need to maintain has to be written to and loaded from the store that the extension context makes available.

@asarkar asarkar added the bug Something isn't working label Aug 14, 2020
@asarkar asarkar added this to the v1.0.3 milestone Aug 14, 2020
@asarkar asarkar self-assigned this Aug 14, 2020
asarkar pushed a commit that referenced this issue Aug 14, 2020
@asarkar asarkar linked a pull request Aug 14, 2020 that will close this issue
asarkar pushed a commit that referenced this issue Aug 14, 2020
asarkar pushed a commit that referenced this issue Aug 14, 2020
asarkar pushed a commit that referenced this issue Aug 14, 2020
asarkar pushed a commit that referenced this issue Aug 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant