Skip to content
This repository was archived by the owner on Feb 5, 2026. It is now read-only.

Secure Unit Testing

Doug DeJulio edited this page May 11, 2014 · 2 revisions

To do unit testing securely against your own server without exposing your test credentials, do the following:

  • In Xcode, create a new "scheme" with testing as a target and mark it as not shared.
  • Edit the scheme, go into "Run", and add the following environment variables (which will be inherited by "Test" and other choices):
  1. userTravis
  2. passwordTravis
  3. baseUrlTravis
  4. webdavBaseUrlTravis

The data will end up in the "xcuserdata" folder of the Xcode project, which is normally not managed under source control. So, your local builds and runs using that scheme will see those environment variables, but there should be no risk of pushing them to any repositories.

Clone this wiki locally