Protocol

XCTActivity

A named substep of a test method.

Topics

Adding Attachments

func add(XCTAttachment)

Associates a file, image, or other attachment with the activity.

Required.

Activity Properties

var name: String

A human-readable name for the activity.

Required.

Relationships

Inherits From

Adopted By

See Also

Activities

Grouping Tests into Substeps with Activities

Create named activities within test methods to simplify test reports.

class XCTContext

A proxy for the current testing context.