LaunchEnvironments

public struct LaunchEnvironments : LaunchEnvironmentProtocol, ExpressibleByDictionaryLiteral

Most basic and generic structure to pass (key: value) pairs through TestLauncher.

Example:

let launchEnvironmentDictionary: LaunchEnvironments = ["CORPORATION_KEY": "PGS", "PROJECT_KEY": "AutoMate"]
  • Key

    Declaration

    Swift

    public typealias Key = String
  • Declaration

    Swift

    public typealias Value = String
  • Data passed as value for environment variable

    Declaration

    Swift

    public let data: [String : String]
  • Unique value to use when comparing with other launch options.

    Declaration

    Swift

    public var uniqueIdentifier: String { get }
  • Launch environment variables provided by this option.

    Declaration

    Swift

    public var launchEnvironments: [String : String]? { get }
  • Initialize structure with dictionary of keys and values.

    Declaration

    Swift

    public init(dictionaryLiteral elements: (Key, Value)...)

    Parameters

    elements

    Dictionary of keys and values.