ContactLaunchEnvironment

Launch environment supporting Contacts. Expects bundle and file name for every file containing data of contacts to be added to address book at test launch. Structure is defined in example project’s file contacts.json.

Example:

let johnContacts: ContactLaunchEnvironment = [ LaunchEnvironmentResourceValue(fileName: "john", bundleName: "Data") ]
let severalContacts = ContactLaunchEnvironment(resources: (fileName: "michael", bundleName: "Test data"), (fileName: "emma", bundleName: nil))
let severalContacts = ContactLaunchEnvironment(shouldCleanBefore: true, resources: (fileName: "michael", bundleName: "Test data"), (fileName: "emma", bundleName: nil))

Warning

Setting shouldCleanBefore to true will remove all contacts from a device.