Skip to content

Are the segments of JUnit Jupiter unique IDs part of the public API? #3551

Answered by sbrannen
fmeum asked this question in Q&A
Discussion options

You must be logged in to vote

If you are referring to the String form of a unique ID, then no, that format is not guaranteed to be stable.

Although it's not very likely that the segment names will change drastically, they could still change if a technical need arises.

So I'd be hesitant to introduce any code/parsing that relies on the current format.

If you need to work with segments, you should use the org.junit.platform.engine.UniqueId API.

I believe the "engine" segment type is the only named element that is documented as stable.

@marcphilipp, please correct me if I'm recalling this incorrectly.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fmeum
Comment options

Answer selected by marcphilipp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants