Contents

XCTContext

A proxy for the current testing context.

Declaration

class XCTContext

Mentioned in

Overview

XCTContext provides a way for activities (XCTActivity) to run against the current testing context, either directly in a test case or in custom testing utilities. You can break up long test methods in UI tests or integration tests into activities to reuse, and to simplify results in the Xcode test reports. Use runActivity(named:block:) to run a block of code as a named substep in a test. For more information, see Grouping Tests into Substeps with Activities.

Topics

Running Activities

See Also

Activities