What is the best strategy for Unit test for UIViewController
zh-wowtv opened this issue · comments
zh-wowtv commented
I know MVP move most of the logic to Presenter already. But I'm still want to know if you have any suggestion on how to Unit test the UIViewController. Thanks.
Mohamed Tamer Agha commented
In our team we are using Snapshot tests using https://github.com/facebook/ios-snapshot-test-case and UITests using https://github.com/google/EarlGrey
Both are kind of blackbox testing technologies which help you to guarantee that your UIViewControllers are working as intended
0xEwoks commented
Just a note for others who see this: new repository of SnapshotTestCase is moved from fb to über and at the moment is here: https://github.com/uber/ios-snapshot-test-case