Add traits to tests to annotate them or customize their behavior.
Pass built-in traits to test functions or suite types to comment, categorize,
classify, and modify runtime behaviors. You can also use the Trait
, TestTrait
,
and SuiteTrait
protocols to create your own types that customize the
behavior of test functions.
- doc:EnablingAndDisabling
- doc:LimitingExecutionTime
Trait/enabled(if:_:sourceLocation:)
Trait/enabled(_:sourceLocation:_:)
Trait/disabled(_:sourceLocation:)
Trait/disabled(if:_:sourceLocation:)
Trait/disabled(_:sourceLocation:_:)
Trait/timeLimit(_:)
- doc:Parallelization
Trait/serialized
- doc:AddingTags
- doc:AddingComments
- doc:AssociatingBugs
- doc:BugIdentifiers
Tag()
Trait/bug(_:_:)
Trait/bug(_:id:_:)-10yf5
Trait/bug(_:id:_:)-3vtpl
Trait
TestTrait
SuiteTrait
TestScoping
Bug
Comment
ConditionTrait
ParallelizationTrait
Tag
Tag/List
TimeLimitTrait