-
Notifications
You must be signed in to change notification settings - Fork 468
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
Provide unique IDs for all node info objects #1696
base: master
Are you sure you want to change the base?
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1696 +/- ##
============================================
- Coverage 80.44% 80.18% -0.27%
+ Complexity 4337 4299 -38
============================================
Files 441 439 -2
Lines 13534 13481 -53
Branches 1707 1701 -6
============================================
- Hits 10888 10810 -78
- Misses 2008 2026 +18
- Partials 638 645 +7 ☔ View full report in Codecov by Sentry. |
595c6da
to
3cacaf6
Compare
What is the use-case? And shouldn't we have something that is stable across invocations, otherwise it's use is severely limited. |
3cacaf6
to
f207f8a
Compare
Well, everytime you need a unique ID during the test.
Well, the intended use by me was during one test run to relate things, without needing to build a unique ID yourself. Not sure whether we need stable unique ids for those. :-/ |
f207f8a
to
9a9dc34
Compare
Also, that they are stable across invocations for spec, feature, and iteration info is mainly a side-effect. The goal was to have something descriptive that can the also easily be readable for example in the log output where I intend to use it. :-D |
9a9dc34
to
f91997e
Compare
82329d4
to
9e20670
Compare
0a54c3f
to
53f0557
Compare
5c9ac8c
to
02aff00
Compare
6e21a45
to
b3d7dbb
Compare
2caee62
to
6c400f0
Compare
0422e2b
to
d6e3be7
Compare
I don't see where there should be problems with #1153. Of course the code can also be written in any project that needs such an ID. public static String getIterationIdentifier(IterationInfo iterationInfo) {
FeatureInfo featureInfo = iterationInfo.getParent();
SpecInfo specInfo = featureInfo.getParent();
return new StringJoiner(".")
.add(specInfo.getReflection().getName())
.add(featureInfo.getFeatureMethod().getReflection().getName())
.add(String.valueOf(iterationInfo.getIterationIndex()))
.toString();
} But I thought it would be nice to provide ready-made values already for such use-cases. |
077181e
to
f918dea
Compare
5c0aee8
to
5d2e2d8
Compare
8814399
to
3db8d21
Compare
Given that we now have the extension store, do you still see a need? |
I don't know how this is in any way related to the extension store. So yes, I still see the need and imho it is not really niche or I wouldn't have created a PR. |
a174c62
to
56d0cdf
Compare
06305f1
to
ab7b2cd
Compare
937bf52
to
60bf169
Compare
2b3461f
to
3b8d246
Compare
3b8d246
to
b322fb9
Compare
No description provided.