-
Notifications
You must be signed in to change notification settings - Fork 45
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
Implement Run Script comparison #112
Implement Run Script comparison #112
Conversation
After using this new functionality today, I'm wondering if perhaps the output could be improved by using an additional If that's the case, perhaps I could open an additional Issue as an enhancement and work on that later? If that's not how it's supposed to be used, ignore all of this :) |
Hi @michaelmcguire, many thanks for opening the PR. I've played a bit with the comparator and it worked really well 👍 Small things I'd consider.
instead of
maybe this
That sounds like a great idea 👍 As you said, it does not need to be part of this PR, we can follow up on it. |
@@ -0,0 +1,157 @@ | |||
// | |||
// Copyright Bloomberg Finance L.P. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use Copyright 2022 Bloomberg Finance L.P.
.
@@ -0,0 +1,530 @@ | |||
// | |||
// Copyright 2020 Bloomberg Finance L.P. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use Copyright 2022 Bloomberg Finance L.P.
.
You all have been excellent to work with, thanks for your help, @marciniwanicki!
Makes a lot of sense. Fixed in 6b7a7d3.
Great catch. Fixed in 6895eae. After having some experience with this, I almost wonder if a rethinking might be in order around the Build Phases entirely. It might be nice to be able to compare them directly with all the details being sort of "sub-comparators" that are called by the main comparison. That way you can get the results in a single spot and you can better take into consideration the order of the scripts when determining identity. Just a thought for the future! 🤦🏼♂️ That was just embarrassing. I even saw the use of
Great! Thanks again for your help. I also fixed up the copyright notices in c72261f. |
Codecov Report
@@ Coverage Diff @@
## main #112 +/- ##
==========================================
+ Coverage 96.54% 96.69% +0.14%
==========================================
Files 49 50 +1
Lines 2636 2750 +114
==========================================
+ Hits 2545 2659 +114
Misses 91 91
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Many thanks @michaelmcguire for all the tweaks 👍, last small thing to resolve - DCO. It would be best if you squash your commits into one, ideally with the description matching the PR description. We try to keep the history on the |
Might be also good to update https://github.com/bloomberg/xcdiff/blob/main/Documentation/Comparators.md. |
356be5e
to
9fb60d7
Compare
Fixes issue bloomberg#110 Describe your changes * Added `RunScriptComparator` for doing detailed comparisons of an Xcode "Run Script" build phase (represented in `XcodeProj` as `PBXShellScriptBuildPhase`). * Added test support for running unit tests. * Updated the generated `CommandTests` after modifying the Project fixtures to have differences. Testing performed Added full suite of unit tests and command tests. I also ran it against the projects I'm working on (where I first noticed the problem) and saw it detected the changes. Signed-off-by: Michael McGuire <[email protected]>
9fb60d7
to
e2fe490
Compare
@marciniwanicki All squashed and ready to go with an updated commit message that's been signed-off.
Included that as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @michaelmcguire 🙌
Issue number of the reported bug or feature request: #110
Describe your changes
RunScriptComparator
for doing detailed comparisons of an Xcode "Run Script" build phase (represented inXcodeProj
asPBXShellScriptBuildPhase
).CommandTests
after modifying the Project fixtures to have differences.Testing performed
Added full suite of unit tests and command tests. I also ran it against the projects I'm working on (where I first noticed the problem) and saw it detected the changes.