Structureswift-testing 6.0.2Testing
Configuration
A type containing settings for preparing and running tests.
Configuration.swift:13This declaration is gated by at least one @_spi attribute.
struct Configuration
Citizens in Testing
Conformances
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 (11)
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 exitTestHandler: ExitTest.Handler
A handler that is invoked when an exit test starts.
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.