-
Notifications
You must be signed in to change notification settings - Fork 252
Split deviceAgnostic specific suffixes in options. #161
base: master
Are you sure you want to change the base?
Split deviceAgnostic specific suffixes in options. #161
Conversation
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
The Travis fails because of the cocoapods dependency. Shall I use git submodule as you do in facebook-ios-sdk ? |
You probably just need to rebase - master is green - ah, you did that, interesting |
@orta yes, and the master does not have the cocoapods dependencies |
Finally decided to go for git submodules and followed the structure from the facebook-ios-sdk |
@nscoding Hey, is there a chance that this be merged? |
This is great, specially the ability for localisation segmentation. Why hasn't this been reviewed @nscoding? It's actually a follow up from https://github.com/facebook/ios-snapshot-test-case/pull/158/files#r60323378 it seems. |
@dzenbot I've been waiting for it since a while, I believe there should be a reason and it's not just stuck here =( |
thank you for working on this, I am not sure how I missed it. I promise to review this as soon as I can. |
Would this code handle the case where the test is |
@mhollis1980 hi, now it won't handle this case and it's the interesting case, I haven't seen this problem before, why do you want to change |
@Antondomashnev Moving from agnostic = true to agnostic = false all the file names would contain |
@mhollis1980 when I submitted a PR all possible options were covered. However, if it's something new in the code this could be potentially not merged yet. |
@Antondomashnev. I don't want that at all. If you can merge please do. |
This branch needs an update @Antondomashnev |
@dzenbot thanks for noticing it. I'll do an update tonight 😄 |
804df9d
to
7dce30d
Compare
@dzenbot I've rebased master into this branch, it's up to date now 👍 |
@Antondomashnev I believe
Without it I get an error "Include of non-modular header inside framework module" after installing with CocoaPods. |
@soleares unfortunately the PR is has not merged yet, so I can update the podspec in my local branch and you can point to it. Are you using |
@Antondomashnev I merged your PR into my own fork and am using a modified podspec so it works great for me. I mentioned it because I assumed that the podspec change should be part of this PR. I'm not sure what the convention is though. |
@soleares ah, ok, thanks. No sure if that PR is going to be merged at all, so before updating the podspec I'd like to wait for review from collaborators 😄 |
Hey there! We just moved the repo over here: https://github.com/uber/ios-snapshot-test-case I'm also PR'ing a longstanding change from our fork into the new repo which should hopefully meet this PR's requirements (though I haven't read all the code in this old PR): Let me know if we've missed anything! |
Hi there. First of all thanks for the great tool to test views.
Currently
FBSnapshotTestCase
hasdeviceAgnostic
property that in case oftrue
appends model name, os name and the screen size as suffix for the result filename. But for my purpose I need only device name + screen size, and my snapshots should not be different depending on the os name.When Apple releases new sdk I need to update all my snapshots, that takes quite a lot of time just because they change the os version.
So this pr introduces the replacement for
deviceAgnostic
-agnosticnessOptions
which is an NS_OPTION and the developer can combine different options to append to filename such as screen size, os version, model and localization.It also provides the backward compatibility, deviceAgnostic becomes deprecated but still can be used.
What do you think about it?