record(_:sourceLocation:)

    Record an issue when a running test fails unexpectedly.

    Issue+Recording.swift:110
    @discardableResult static func record(_ comment: Comment? = nil, sourceLocation: SourceLocation = #_sourceLocation) -> Issue

    Parameters

    comment

    A comment describing the expectation.

    sourceLocation

    The source location to which the issue should be attributed.

    Returns

    The issue that was recorded.

    Use this function if, while running a test, an issue occurs that cannot be represented as an expectation (using the expect(_:_:sourceLocation:) or require(_:_:sourceLocation:) macros.)

    Other members in extension

    Types

    • enum Kind

      Kinds of issues which may be recorded.

    Type members

    Instance members

    Show system interfaces (2)

    Hide system interfaces