-
I couldn't find any documentation on whether the precise format of JUnit Jupiter test "unique IDs" is guaranteed to be stable. In particular, can it be relied on that e.g. test template method invocations have |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If you are referring to the 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 I believe the @marcphilipp, please correct me if I'm recalling this incorrectly. |
Beta Was this translation helpful? Give feedback.
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.