jeudi 23 juin 2016

iOS how to control application flow during unit tests?

I have an app that attempts to configure itself on first launch. I'm seeing that as I'm running my unit tests, the app does this asynchronous update in background which messes with the tests.

Is there some way to make an iOS app skip automatic operations, such as checking for updates if I'm running Unit Tests? Like a build flag or loading a separate storyboard as the first view controller?

Aucun commentaire:

Enregistrer un commentaire