timeLimit

    The maximum amount of time the cases of this test may run for.

    TimeLimitTrait.swift:197
    iOS
    16.0+
    macOS
    13.0+
    tvOS
    16.0+
    watchOS
    9.0+
    var timeLimit: Duration? { get }

    Time limits are associated with tests using this trait:

    • Trait/timeLimit(_:)

    If a test has more than one time limit associated with it, the value of this property is the shortest one. If a test has no time limits associated with it, the value of this property is nil.

    Other members in extension

    Types

    Show system interfaces (2)

    Hide system interfaces

    • struct Clock

      A clock used to track time when events occur during testing.

    • struct Parameter

      A type representing a single parameter to a parameterized test function.

    Typealiases

    Show implementation details (1)

    Hide implementation details

    Type members

    Show implementation details (7)

    Hide implementation details

    Instance members

    Show system interfaces (5)

    Hide system interfaces