ken
ken

Reputation: 4077

How to automate testing of different launch options in iOS app?

I was wondering if there was a way to automate testing of different configurations of launchOptions when the app first launches? I am familiar with XCTest, KIF and KIWI but I'm not sure if it's possible to implement that sort of tests?

Upvotes: 2

Views: 307

Answers (1)

Marek Staňa
Marek Staňa

Reputation: 564

I think that you can always to put app to state as it was with first run. I mean in AppDelegate with

 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

you can always react on launchOptions to set app state before each test or before all test - that depends on your actual test.

Upvotes: 0

Related Questions