Skip to content

Provide access to session-scoped store to Jupiter method/class orderers - #6124

Open
marcphilipp wants to merge 3 commits into
mainfrom
marc/orderer-session-store
Open

marcphilipp wants to merge 3 commits into
mainfrom
marc/orderer-session-store

Conversation

@marcphilipp

@marcphilipp marcphilipp commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

I hereby agree to the terms of the JUnit Contributor License Agreement.


Definition of Done

@marcphilipp
marcphilipp added this pull request to stack #6125 October 6, 2026 13:15
@marcphilipp
marcphilipp force-pushed the marc/orderer-session-store branch from 113965b to 583f8fb Compare October 6, 2026 14:49
@marcphilipp marcphilipp added this to the 6.2.0-M1 milestone Oct 6, 2026
mpkorstanje

This comment was marked as outdated.

Comment thread junit-jupiter-api/src/main/java/org/junit/jupiter/api/DiscoveryContext.java Outdated
@marcphilipp
marcphilipp force-pushed the marc/orderer-session-store branch from 583f8fb to c421885 Compare October 23, 2026 11:03
@marcphilipp
marcphilipp marked this pull request as ready for review October 23, 2026 11:10
Base automatically changed from marc/discovery-session-store to main October 23, 2026 11:57
@marcphilipp
marcphilipp force-pushed the marc/orderer-session-store branch 2 times, most recently from 856559c to 01701e5 Compare October 24, 2026 13:54
* configuration parameter to {@code false}.
*/
interface Store {
interface Store extends org.junit.jupiter.api.store.Store {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should deprecate ExtensionContext.Store and ExtensionContext.Namespace and add methods that take/return the new interfaces instead. Thoughts?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. When would we remove the deprecated methods?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Theoretically, we could remove them in 7.0. However, that would break extensions that want to be compatible with 5.x. Therefore, realistically, we would keep them for quite while, possibly until 8.0.

@marcphilipp
marcphilipp force-pushed the marc/orderer-session-store branch from 01701e5 to c36bc54 Compare October 24, 2026 17:05
Implementations of `ClassOrderer` or `MethodOrderer` may now access the
store scoped to the enclosing launcher session via the new
`DiscoveryContext.getStoreAccessor(...)` API. This can be used to store
or cache information that is reused during test execution or later
discovery phases.
@marcphilipp
marcphilipp force-pushed the marc/orderer-session-store branch from c36bc54 to e6e90c2 Compare October 25, 2026 18:23
@testlens-app

testlens-app Bot commented Oct 25, 2026

Copy link
Copy Markdown

✅ All tests passed ✅

🏷️ Commit: e6e90c2
▶️ Tests: 33296 executed
⚪️ Checks: 15/15 completed


Learn more about TestLens at testlens.app/docs.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

2 participants