One annoying thing when running tests in Xcode 6.1 is that the entire app has to run and launch its storyboard and root view controller. In my app this runs some server calls th
First add variable for testing:
and use that in your code:
if ProcessInfo.processInfo.environment["IS_UNIT_TESTING"] == "1" { // Code only executes when tests are running }