Test Execution and Observation

Observe, introspect, and customize the test execution flow.

Topics

Test Runs

XCTestCaseRun

Collects information about a specific execution of an XCTestCase.

XCTestSuiteRun

Collects information about a specific execution of an XCTestSuite.

XCTestRun

A base class for collecting information about a specific execution of an XCTest.

Test Observation

XCTestObservation

The XCTestObservation protocol defines methods that are called in response to significant events in the progress of test runs.

XCTestObservationCenter

Provides information about the progress of test runs to registered observers.

Test Suites

XCTestSuite

A collection (or suite) of test cases.