Contents

record(_:)

Records an issue during test execution for the test run.

Declaration

func record(_ issue: XCTIssue)
func record(_ issue: XCTIssueReference)

Parameters

  • issue:

    The test issue to record.

Discussion

The test run records a failure or other issue during test execution with this method. Override to customize the issue, and call super unless you want to suppress the issue.

See Also

Performing Test Runs