ExampleMVVMFlow icon indicating copy to clipboard operation
ExampleMVVMFlow copied to clipboard

Simulator freeze when I run FlowTestRouter

Open noais opened this issue 8 years ago • 2 comments

I'm trying to run this tests, but nothing happens the simulator freeze.

noais avatar Jun 16 '17 11:06 noais

@noais do you have more details about this problem? I test here in XCode 8.3.3 in Simulator ( iPhone 7 Plus with iOS 10.3) and work to me. I will try more stress tests here.

digoreis avatar Jun 18 '17 22:06 digoreis

I'm trying to run FlowTestRouter.selectRoute(window, routes: ProcessInfo.processInfo.arguments) passing the argument UITestRun (scheme configuration). But inside FlowTestRouter class the fun selectRoute routes doesn't contain UITestRun.

So in

if let window = window, ProcessInfo.processInfo.arguments.contains("UITestRun") {
     FlowTestRouter.selectRoute(window, routes: ProcessInfo.processInfo.arguments)
      return true
}

FlowTestRouter dont do nothing and return true and the application don't start.

I don't understand how you run FlowTestRouter when you add arguments on UITests like app.launchArguments.append("uitest-list"). You can run application and tests on same time?

noais avatar Jun 19 '17 10:06 noais