title: Xcode project how to detect target programmatically or how to use env vars
body: <p>I want to do an Application test that parses some json, stores to core data, and reads out some objects.</p>
  
  <p>How can my code know if it's being run as part of a test or normal run?  Just some way to know "are we in test target"?  Because the app when it fires up now kicks off a bunch of requests to populate my coredata with info from the server.  I don't want it to do this during my tests.  I want to fire up the App, read HARDCODED json from a file and store this using the same methods as otherwise into coredata, and verify the results.</p>
  
  <p>If someone could explain how to pass specific key-value pairs on a per target basis that can be read from within the app, I would be even more delighted.</p>