STRUCT
TestableTarget
Contents
- Properties
targetisSkippedisParallelizableparallelizationisRandomExecutionOrderingsimulatedLocation
- Methods
testableTarget(target:isSkipped:isParallelizable:isRandomExecutionOrdering:simulatedLocation:)testableTarget(target:isSkipped:parallelization:isRandomExecutionOrdering:simulatedLocation:)init(stringLiteral:)
swift
public struct TestableTarget: Equatable, Codable, ExpressibleByStringInterpolation, SendableProperties
target
swift
public var target: TargetReferenceisSkipped
swift
public var isSkipped: BoolisParallelizable
swift
public var isParallelizable: Boolparallelization
swift
public var parallelization: ParallelizationisRandomExecutionOrdering
swift
public var isRandomExecutionOrdering: BoolsimulatedLocation
swift
public var simulatedLocation: SimulatedLocation?Methods
testableTarget(target:isSkipped:isParallelizable:isRandomExecutionOrdering:simulatedLocation:)
swift
public static func testableTarget(
target: TargetReference,
isSkipped: Bool = false,
isParallelizable: Bool,
isRandomExecutionOrdering: Bool = false,
simulatedLocation: SimulatedLocation? = nil
) -> SelfReturns a testable target.
- Parameters:
- 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.
Parameters
| 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:)
swift
public static func testableTarget(
target: TargetReference,
isSkipped: Bool = false,
parallelization: Parallelization = .disabled,
isRandomExecutionOrdering: Bool = false,
simulatedLocation: SimulatedLocation? = nil
) -> SelfReturns a testable target.
- Parameters:
- 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.
Parameters
| 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:)
swift
public init(stringLiteral value: String)Parameters
| Name | Description |
|---|---|
| value | The value of the new instance. |
