lundi 30 mars 2015

How can I test an iOS application starting from different initial states?

How can I test an iOS app starting from different initial states? I can fake any initial data for my app (like existing files, data stored in NSUserDefaults, KeyChain, connection availability and so on) and use protocols to avoid dependencies. But my question is how can I pass these parameters to application before it was launched when I run tests from Xcode, since Xcode tests are injected into running app? Ideally I'd like to have an ability to tell Xcode "run these tests from state A and run those tests from state B". Is that possible?


Aucun commentaire:

Enregistrer un commentaire