Instance Propertyswift-testing 6.0.2Testing
exitTestHandler
A handler that is invoked when an exit test starts.
Configuration.swift:193This declaration is gated by at least one @_spi attribute.
var exitTestHandler: ExitTest.Handler
For an explanation of how this property is used, see Handler
.
When using the swift test
command from Swift Package Manager, this property is pre-configured. Otherwise, the default value of this property records an issue indicating that it has not been configured.
Other members in extension
Types
Show system interfaces (2)
Hide system interfaces
struct RepetitionPolicy
A type describing whether or not, and how, to iterate a test plan repeatedly.
struct TestFilter
A type that handles filtering tests.
Typealiases
Show system interfaces (1)
Hide system interfaces
typealias TestCaseFilter
A function that handles filtering test cases.
Type members
Show system interfaces (2)
Hide system interfaces
init(
) Initialize an instance of this type representing the default configuration.
static var current: `Self`?
The configuration for the current task, if any.
Instance members
Show system interfaces (10)
Hide system interfaces
var defaultTestTimeLimit: Duration?
The default amount of time a test may run for before timing out if it does not have an instance of
TimeLimitTrait
applied to it.var deliverExpectationCheckedEvents: Bool
Whether or not events of the kind
expectationChecked(_:)
should be delivered to this configuration’seventHandler
closure.var eventHandler: Event.Handler
The event handler to which events should be passed when they occur.
var isMainActorIsolationEnforced: Bool
Whether or not synchronous test functions need to run on the main actor.
var isParallelizationEnabled: Bool
Whether or not to parallelize the execution of tests and test cases.
var maximumTestTimeLimit: Duration?
The maximum amount of time a test may run for before timing out, regardless of the value of
defaultTestTimeLimit
or individual instances ofTimeLimitTrait
applied to it.var repetitionPolicy: RepetitionPolicy
Whether or not, and how, to iterate the test plan repeatedly.
var testCaseFilter: TestCaseFilter
The test case filter to which test cases should be filtered when run.
var testFilter: TestFilter
The test filter to which tests should be filtered when run.
var testTimeLimitGranularity: Duration
The granularity to enforce on test time limits.