Skip to content

STRUCT

GeneratedTestPlan.Options ​

Contents

  • Properties
    • commandLineArgumentEntries
    • environmentVariableEntries
    • targetForVariableExpansion
    • language
    • region
    • locationScenario
    • uiTestingScreenshotsLifetime
    • preferredScreenCaptureFormat
    • areLocalizationScreenshotsEnabled
    • distributor
    • userAttachmentLifetime
    • diagnosticCollectionPolicy
    • testExecutionOrdering
    • testTimeoutsEnabled
    • defaultTestExecutionTimeAllowance
    • maximumTestExecutionTimeAllowance
    • testRepetitionMode
    • maximumTestRepetitions
    • repeatInNewRunnerProcess
    • codeCoverage
    • addressSanitizer
    • threadSanitizerEnabled
    • undefinedBehaviorSanitizerEnabled
    • mainThreadCheckerDetectionPolicy
    • threadPerformanceCheckerRuntimeIssueDetection
    • runtimeIssueDetection
    • checkedAllocations
    • mallocScribbleEnabled
    • mallocGuardEdgesEnabled
    • nsZombieEnabled
    • mallocStackLoggingOptions
  • Methods
    • init(commandLineArgumentEntries:environmentVariableEntries:targetForVariableExpansion:language:region:locationScenario:uiTestingScreenshotsLifetime:preferredScreenCaptureFormat:areLocalizationScreenshotsEnabled:distributor:userAttachmentLifetime:diagnosticCollectionPolicy:testExecutionOrdering:testTimeoutsEnabled:defaultTestExecutionTimeAllowance:maximumTestExecutionTimeAllowance:testRepetitionMode:maximumTestRepetitions:repeatInNewRunnerProcess:codeCoverage:addressSanitizer:threadSanitizerEnabled:undefinedBehaviorSanitizerEnabled:mainThreadCheckerDetectionPolicy:threadPerformanceCheckerRuntimeIssueDetection:runtimeIssueDetection:checkedAllocations:mallocScribbleEnabled:mallocGuardEdgesEnabled:nsZombieEnabled:mallocStackLoggingOptions:)
    • options(commandLineArgumentEntries:environmentVariableEntries:targetForVariableExpansion:language:region:locationScenario:uiTestingScreenshotsLifetime:preferredScreenCaptureFormat:areLocalizationScreenshotsEnabled:distributor:userAttachmentLifetime:diagnosticCollectionPolicy:testExecutionOrdering:testTimeoutsEnabled:defaultTestExecutionTimeAllowance:maximumTestExecutionTimeAllowance:testRepetitionMode:maximumTestRepetitions:repeatInNewRunnerProcess:codeCoverage:addressSanitizer:threadSanitizerEnabled:undefinedBehaviorSanitizerEnabled:mainThreadCheckerDetectionPolicy:threadPerformanceCheckerRuntimeIssueDetection:runtimeIssueDetection:checkedAllocations:mallocScribbleEnabled:mallocGuardEdgesEnabled:nsZombieEnabled:mallocStackLoggingOptions:)
swift
public struct Options: Codable, Hashable, Sendable

Options applied to the generated test plan.

Properties ​

commandLineArgumentEntries ​

swift
public var commandLineArgumentEntries: [CommandLineArgumentEntry]?

Arguments Passed On Launch

environmentVariableEntries ​

swift
public var environmentVariableEntries: [VariableEntity]?

Environment Variables

targetForVariableExpansion ​

swift
public var targetForVariableExpansion: TargetReference?

Target for Variable Expansion

language ​

swift
public var language: String?

Application Language

region ​

swift
public var region: String?

Application Region

locationScenario ​

swift
public var locationScenario: LocationScenario?

Simulated Location

uiTestingScreenshotsLifetime ​

swift
public var uiTestingScreenshotsLifetime: UITestingScreenshotsLifetime?

Automatic Screen Capture

preferredScreenCaptureFormat ​

swift
public var preferredScreenCaptureFormat: PreferredScreenCaptureFormat?

Preferred Capture Format

areLocalizationScreenshotsEnabled ​

swift
public var areLocalizationScreenshotsEnabled: Bool?

Localization Screenshots

distributor ​

swift
public var distributor: Distributor?

Distribution

userAttachmentLifetime ​

swift
public var userAttachmentLifetime: UserAttachmentLifetime?

Attachments

diagnosticCollectionPolicy ​

swift
public var diagnosticCollectionPolicy: DiagnosticCollectionPolicy?

Collect Test Diagnostics on Failure

testExecutionOrdering ​

swift
public var testExecutionOrdering: TestExecutionOrdering?

XCTest Execution Order

testTimeoutsEnabled ​

swift
public var testTimeoutsEnabled: Bool?

Test Timeouts

defaultTestExecutionTimeAllowance ​

swift
public var defaultTestExecutionTimeAllowance: Int?

Default Test Execution Time Allowance (s) (default: 600)

maximumTestExecutionTimeAllowance ​

swift
public var maximumTestExecutionTimeAllowance: Int?

Maximum Test Execution Time Allowance (s) (default: None)

testRepetitionMode ​

swift
public var testRepetitionMode: TestRepetitionMode?

Test Repetition Mode

maximumTestRepetitions ​

swift
public var maximumTestRepetitions: Int?

Maximum Test Repetitions (default: 3)

repeatInNewRunnerProcess ​

swift
public var repeatInNewRunnerProcess: Bool?

Relaunch Tests for Each Repetition

codeCoverage ​

swift
public var codeCoverage: Coverage?

Code Coverage

addressSanitizer ​

swift
public var addressSanitizer: AddressSanitizer?

Address Sanitizer

threadSanitizerEnabled ​

swift
public var threadSanitizerEnabled: Bool?

Thread Sanitizer

undefinedBehaviorSanitizerEnabled ​

swift
public var undefinedBehaviorSanitizerEnabled: Bool?

Undefined Behavior Sanitizer

mainThreadCheckerDetectionPolicy ​

swift
public var mainThreadCheckerDetectionPolicy: RuntimeApiChecking?

Main Thread Checker

threadPerformanceCheckerRuntimeIssueDetection ​

swift
public var threadPerformanceCheckerRuntimeIssueDetection: RuntimeApiChecking?

Thread Performance Checker

runtimeIssueDetection ​

swift
public var runtimeIssueDetection: RuntimeApiChecking?

Other Runtime Issues

checkedAllocations ​

swift
public var checkedAllocations: CheckedAllocations?

Hardware Memory Tagging

mallocScribbleEnabled ​

swift
public var mallocScribbleEnabled: Bool?

Malloc Scribble

mallocGuardEdgesEnabled ​

swift
public var mallocGuardEdgesEnabled: Bool?

Malloc Guard Edges

nsZombieEnabled ​

swift
public var nsZombieEnabled: Bool?

Zombie Objects

mallocStackLoggingOptions ​

swift
public var mallocStackLoggingOptions: MallocStackLoggingOptions?

Malloc Stack Logging

Methods ​

init(commandLineArgumentEntries:environmentVariableEntries:targetForVariableExpansion:language:region:locationScenario:uiTestingScreenshotsLifetime:preferredScreenCaptureFormat:areLocalizationScreenshotsEnabled:distributor:userAttachmentLifetime:diagnosticCollectionPolicy:testExecutionOrdering:testTimeoutsEnabled:defaultTestExecutionTimeAllowance:maximumTestExecutionTimeAllowance:testRepetitionMode:maximumTestRepetitions:repeatInNewRunnerProcess:codeCoverage:addressSanitizer:threadSanitizerEnabled:undefinedBehaviorSanitizerEnabled:mainThreadCheckerDetectionPolicy:threadPerformanceCheckerRuntimeIssueDetection:runtimeIssueDetection:checkedAllocations:mallocScribbleEnabled:mallocGuardEdgesEnabled:nsZombieEnabled:mallocStackLoggingOptions:) ​

swift
public init(
    commandLineArgumentEntries: [CommandLineArgumentEntry]?,
    environmentVariableEntries: [VariableEntity]?,
    targetForVariableExpansion: TargetReference?,
    language: String?,
    region: String?,
    locationScenario: LocationScenario?,
    uiTestingScreenshotsLifetime: UITestingScreenshotsLifetime?,
    preferredScreenCaptureFormat: PreferredScreenCaptureFormat?,
    areLocalizationScreenshotsEnabled: Bool?,
    distributor: Distributor?,
    userAttachmentLifetime: UserAttachmentLifetime?,
    diagnosticCollectionPolicy: DiagnosticCollectionPolicy?,
    testExecutionOrdering: TestExecutionOrdering?,
    testTimeoutsEnabled: Bool?,
    defaultTestExecutionTimeAllowance: Int?,
    maximumTestExecutionTimeAllowance: Int?,
    testRepetitionMode: TestRepetitionMode?,
    maximumTestRepetitions: Int?,
    repeatInNewRunnerProcess: Bool?,
    codeCoverage: Coverage?,
    addressSanitizer: AddressSanitizer?,
    threadSanitizerEnabled: Bool?,
    undefinedBehaviorSanitizerEnabled: Bool?,
    mainThreadCheckerDetectionPolicy: RuntimeApiChecking?,
    threadPerformanceCheckerRuntimeIssueDetection: RuntimeApiChecking?,
    runtimeIssueDetection: RuntimeApiChecking?,
    checkedAllocations: CheckedAllocations?,
    mallocScribbleEnabled: Bool?,
    mallocGuardEdgesEnabled: Bool?,
    nsZombieEnabled: Bool?,
    mallocStackLoggingOptions: MallocStackLoggingOptions?,
)

options(commandLineArgumentEntries:environmentVariableEntries:targetForVariableExpansion:language:region:locationScenario:uiTestingScreenshotsLifetime:preferredScreenCaptureFormat:areLocalizationScreenshotsEnabled:distributor:userAttachmentLifetime:diagnosticCollectionPolicy:testExecutionOrdering:testTimeoutsEnabled:defaultTestExecutionTimeAllowance:maximumTestExecutionTimeAllowance:testRepetitionMode:maximumTestRepetitions:repeatInNewRunnerProcess:codeCoverage:addressSanitizer:threadSanitizerEnabled:undefinedBehaviorSanitizerEnabled:mainThreadCheckerDetectionPolicy:threadPerformanceCheckerRuntimeIssueDetection:runtimeIssueDetection:checkedAllocations:mallocScribbleEnabled:mallocGuardEdgesEnabled:nsZombieEnabled:mallocStackLoggingOptions:) ​

swift
public static func options(
    commandLineArgumentEntries: [CommandLineArgumentEntry]? = nil,
    environmentVariableEntries: [VariableEntity]? = nil,
    targetForVariableExpansion: TargetReference? = nil,
    language: String? = nil,
    region: String? = nil,
    locationScenario: LocationScenario? = nil,
    uiTestingScreenshotsLifetime: UITestingScreenshotsLifetime? = nil,
    preferredScreenCaptureFormat: PreferredScreenCaptureFormat? = nil,
    areLocalizationScreenshotsEnabled: Bool? = nil,
    distributor: Distributor? = nil,
    userAttachmentLifetime: UserAttachmentLifetime? = nil,
    diagnosticCollectionPolicy: DiagnosticCollectionPolicy? = nil,
    testExecutionOrdering: TestExecutionOrdering? = nil,
    testTimeoutsEnabled: Bool? = nil,
    defaultTestExecutionTimeAllowance: Int? = nil,
    maximumTestExecutionTimeAllowance: Int? = nil,
    testRepetitionMode: TestRepetitionMode? = nil,
    maximumTestRepetitions: Int? = nil,
    repeatInNewRunnerProcess: Bool? = nil,
    codeCoverage: Coverage? = nil,
    addressSanitizer: AddressSanitizer? = nil,
    threadSanitizerEnabled: Bool? = nil,
    undefinedBehaviorSanitizerEnabled: Bool? = nil,
    mainThreadCheckerDetectionPolicy: RuntimeApiChecking? = nil,
    threadPerformanceCheckerRuntimeIssueDetection: RuntimeApiChecking? = nil,
    runtimeIssueDetection: RuntimeApiChecking? = nil,
    checkedAllocations: CheckedAllocations? = nil,
    mallocScribbleEnabled: Bool? = nil,
    mallocGuardEdgesEnabled: Bool? = nil,
    nsZombieEnabled: Bool? = nil,
    mallocStackLoggingOptions: MallocStackLoggingOptions? = nil,
) -> Self