Castellano (Spanish)
Appearance
Castellano (Spanish)
Appearance
STRUCT
TestableTarget
Contents
target
isSkipped
isParallelizable
parallelization
isRandomExecutionOrdering
simulatedLocation
testableTarget(target:isSkipped:isParallelizable:isRandomExecutionOrdering:simulatedLocation:)
testableTarget(target:isSkipped:parallelization:isRandomExecutionOrdering:simulatedLocation:)
init(stringLiteral:)
public struct TestableTarget: Equatable, Codable, ExpressibleByStringInterpolation, Sendable
target
public var target: TargetReference
isSkipped
public var isSkipped: Bool
isParallelizable
public var isParallelizable: Bool
parallelization
public var parallelization: Parallelization
isRandomExecutionOrdering
public var isRandomExecutionOrdering: Bool
simulatedLocation
public var simulatedLocation: SimulatedLocation?
testableTarget(target:isSkipped:isParallelizable:isRandomExecutionOrdering:simulatedLocation:)
public static func testableTarget(
target: TargetReference,
isSkipped: Bool = false,
isParallelizable: Bool,
isRandomExecutionOrdering: Bool = false,
simulatedLocation: SimulatedLocation? = nil
) -> Self
Returns a testable target.
.custom(gpxPath:)
case must refer to a valid GPX file in your project’s resources.Name | Description |
---|---|
target | The name or reference of target to test. |
isSkipped | Whether to skip this test target. If true, the test target is disabled. |
isParallelizable | Whether to run in parallel. |
isRandomExecutionOrdering | Whether to test in random order. |
simulatedLocation | The simulated GPS location to use when testing this target. Please note that the .custom(gpxPath:) case must refer to a valid GPX file in your project’s resources. |
testableTarget(target:isSkipped:parallelization:isRandomExecutionOrdering:simulatedLocation:)
public static func testableTarget(
target: TargetReference,
isSkipped: Bool = false,
parallelization: Parallelization = .disabled,
isRandomExecutionOrdering: Bool = false,
simulatedLocation: SimulatedLocation? = nil
) -> Self
Returns a testable target.
.disabled
, .enabled
, or .swiftTestingOnly
. The default value is .disabled
..custom(gpxPath:)
case must refer to a valid GPX file in your project’s resources.Name | Description |
---|---|
target | The name or reference of target to test. |
isSkipped | Whether to skip this test target. If true, the test target is disabled. |
parallelization | Whether to run tests in parallel. Can be either .disabled , .enabled , or .swiftTestingOnly . The default value is .disabled . |
isRandomExecutionOrdering | Whether to test in random order. |
simulatedLocation | The simulated GPS location to use when testing this target. Please note that the .custom(gpxPath:) case must refer to a valid GPX file in your project’s resources. |
init(stringLiteral:)
public init(stringLiteral value: String)
Name | Description |
---|---|
value | The value of the new instance. |