Test Execution and Observation

Observe, introspect, and customize the test execution flow.

Topics

Test Runs

class XCTestCaseRun

Collects information about a specific execution of an XCTestCase.

class XCTestSuiteRun

Collects information about a specific execution of an XCTestSuite.

class XCTestRun

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

Test Observation

protocol XCTestObservation

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

class XCTestObservationCenter

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

Test Suites

class XCTestSuite

A collection (or suite) of test cases.