Enumeration

XCTAttachmentLifetime

The possible lifetime values for a test attachment.

Declaration

typedef enum XCTAttachmentLifetime : NSInteger {
    ...
} XCTAttachmentLifetime;

Topics

Attachment Lifetimes

XCTAttachmentLifetimeDeleteOnSuccess

Indicates that the attachment should be deleted if the test passes.

XCTAttachmentLifetimeKeepAlways

Indicates that the attachment should be persisted as part of the test’s results even if the test passes.

See Also

Setting an Attachment's Lifetime

lifetime

Indicates whether the attachment is kept or discarded when its associated test passes.