pub unsafe trait XCTActivity: NSObjectProtocol {
// Provided methods
fn name(&self) -> Retained<NSString>
where Self: Sized + Message { ... }
fn addAttachment(&self, attachment: &XCTAttachment)
where Self: Sized + Message { ... }
}Expand description
Represents a test activity.
See also Apple’s documentation
Provided Methods§
Sourcefn name(&self) -> Retained<NSString>
fn name(&self) -> Retained<NSString>
Human-readable name of the activity, given at creation time.
Sourcefn addAttachment(&self, attachment: &XCTAttachment)
fn addAttachment(&self, attachment: &XCTAttachment)
Adds an attachment which is always kept by Xcode, regardless of the test result. Thread-safe, attachments can be added from any thread, are reported in the order they are added.