LaunchArgument

public protocol LaunchArgument : LaunchOption

Any type that implements this protocol can be used to configure application with TestLauncher. Specifically it represents launch argument option so it requires to provide argument key. Type conforming to this protocol should override default implementation of launchArguments.

Custom launch arguments can implement one of two additional protocols:

For more info about launch arguments variables check: Xcode Help.

  • key

    String representation of the argument.

    Declaration

    Swift

    var key: String { get }
  • uniqueIdentifier Extension method

    Unique value to use when comparing with other launch options.

    Declaration

    Swift

    var uniqueIdentifier: String { get }
  • launchEnvironments Extension method

    Launch environment variables provided by this option.

    Launch argument does not have to provide launch environments.

    Declaration

    Swift

    var launchEnvironments: [String : String]? { get }