4.7.2.2 Create a Testing Target

We strongly recommend that you create a separate target which contains and uses all the necessary modifications for your AUT to be testable. Once you have created a second target for the testing-enabled version of your AUT to test, you can begin testing simply by running this second target. Having a separate target also ensures that no testing code will be released into the productive version of your app.

The new target will start as a duplicate of your old target. To create the duplicated target:

  1. Select the project file for your app in the Project Navigator.
  2. From there, CTRL+click the target for your app and select the "Duplicate" option. Xcode may ask you if you want your copy to be for a different iOS device, which you don't, so choose "Duplicate Only".
  3. The new target will be created. We suggest renaming it, e.g. to GUIdancer or Jubula Tests.
  4. You can also (optionally) rename the new target from the default MyApp copy to something more meaningful e.g. MyApp (GUIdancer or Jubula Tests) by selecting the "Build Settings" tab and searching for "Product Name", then changing the value to a new name.



Copyright BREDEX GmbH 2014. Made available under the Eclipse Public License v1.0.