iyadagha / iOS-mvp-sample

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is the best strategy for Unit test for UIViewController

zh-wowtv opened this issue · comments

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.

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

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