Português (Portuguese)
Appearance
Português (Portuguese)
Appearance
STRUCT
TestableTarget Contents
targetisSkippedisParallelizableparallelizationisRandomExecutionOrderingsimulatedLocationtestableTarget(target:isSkipped:isParallelizable:isRandomExecutionOrdering:simulatedLocation:)testableTarget(target:isSkipped:parallelization:isRandomExecutionOrdering:simulatedLocation:)init(stringLiteral:)public struct TestableTarget: Equatable, Codable, ExpressibleByStringInterpolation, Sendabletarget public var target: TargetReferenceisSkipped public var isSkipped: BoolisParallelizable public var isParallelizable: Boolparallelization public var parallelization: ParallelizationisRandomExecutionOrdering public var isRandomExecutionOrdering: BoolsimulatedLocation 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
) -> SelfReturns 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
) -> SelfReturns 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. |