title: How to let the app know if it's running Unit tests in a pure Swift project?
body: <p>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 that fetches API data. However, I don't want the app to do this when running its tests.</p>
  
  <p>With preprocessor macros gone, what's the best for my project to be aware that it was launched running tests and not an ordinary launch? I run them normally with <kbd>command</kbd> + <kbd>U</kbd> and on a bot. </p>
  
  <p>Pseudocode:</p>
  
  <pre><code>// Appdelegate.swift
  if runningTests() {
     return
  } else {
     // do ordinary api calls
  }
  </code></pre>