Attachment
A type describing values that can be attached to the output of a test run and inspected later by the user.
Declaration
struct Attachment<AttachableValue> where AttachableValue : Attachable, AttachableValue : ~CopyableMentioned in
Overview
To create an attachment, you need a value of some type that conforms to Attachable. Initialize an instance of Attachment with that value and, optionally, a preferred filename to use when saving the attachment. To record the attachment, call record(_:sourceLocation:). Alternatively, pass your attachable value directly to record(_:named:sourceLocation:).
Topics
Initializers
init(_:named:as:sourceLocation:)init(_:named:sourceLocation:)init(contentsOf:named:sourceLocation:)init(exporting:as:named:sourceLocation:)