-
Notifications
You must be signed in to change notification settings - Fork 8
Add fingerprint support #7
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
base: master
Are you sure you want to change the base?
Add fingerprint support #7
Conversation
89b67df to
b2fdbb6
Compare
|
@enkessler thanks for fixing this upstream, I just rebased are you open to merging the remainder of the changes in ? |
|
@alexanderjeurissen Admittedly, I've looked at this PR the least because it has actually significant enhancements and I've been running off to do the other quick/intriguing stuff instead (not that this stuff isn't still useful). My mind may or may not be overwhelmed by other things this week but I will get back to this in the near future. |
|
Out of curiosity, what is the main benefit of having a fingerprint method over just the |
|
It might be interesting to refactor the |
|
@enkessler does the above answer your question ? |
|
So Regarding the calculation of the hash value, it would certainly be easy on the development side to just base it off of That reminds me, I still need to get around to having the string form of |
|
@alexanderjeurissen poke In summary: I'm okay with this as long as the fingerprint is based on the various attributes of the model instead of being based on the string output. |



Summary of changes
This PR adds a new methods to the
CukeModeler::Modelclass:This methods generate a
Digest::MD5hex digest of theto_sreturn value of a given model.A block can be provided to control what attribute or value is used to generate the fingerprint
Use-cases / context
The use-case for this new method is easy comparison between models.
For instance, using the
fingerprintmethod one can confirm if twoScenariosare exactly the same or if two scenarios use the exact same steps.Below is an example
cuke_linterthat could be build with these changes merged in.