pub enum TestExecutionEvent {
BeganPlan,
FinishedPlan,
Log {
message: String,
debug: bool,
},
SuiteStarted {
name: String,
started_at: Option<String>,
},
SuiteFinished {
name: String,
finished_at: Option<String>,
test_count: u64,
skipped: u64,
failures: u64,
expected_failures: u64,
unexpected_failures: u64,
uncaught_exceptions: u64,
test_duration_seconds: f64,
total_duration_seconds: f64,
},
CaseStarted {
class_name: String,
method_name: String,
},
CaseFailed {
class_name: String,
method_name: String,
message: String,
file: Option<String>,
line: Option<u64>,
},
CaseFinished {
class_name: String,
method_name: String,
status: TestCaseStatus,
duration_seconds: f64,
},
}Expand description
A normalized XCTest execution event decoded from a DTX method invocation.
Variants§
BeganPlan
The test plan started.
FinishedPlan
The test plan finished.
Log
XCTest emitted a log message.
Fields
SuiteStarted
A test suite started.
Fields
SuiteFinished
A test suite finished and reported aggregate counts.
Fields
CaseStarted
A test case started.
CaseFailed
A test case reported a failure.
Fields
CaseFinished
A test case finished with a final status.
Implementations§
Source§impl TestExecutionEvent
impl TestExecutionEvent
Sourcepub fn from_dtx_message(message: &DtxMessage) -> Option<Self>
pub fn from_dtx_message(message: &DtxMessage) -> Option<Self>
Decode a supported XCTest DTX method invocation.
Sourcepub fn is_finished_plan(&self) -> bool
pub fn is_finished_plan(&self) -> bool
Return true when this event marks the end of the plan.
Trait Implementations§
Source§impl Clone for TestExecutionEvent
impl Clone for TestExecutionEvent
Source§fn clone(&self) -> TestExecutionEvent
fn clone(&self) -> TestExecutionEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TestExecutionEvent
impl Debug for TestExecutionEvent
Source§impl PartialEq for TestExecutionEvent
impl PartialEq for TestExecutionEvent
Source§fn eq(&self, other: &TestExecutionEvent) -> bool
fn eq(&self, other: &TestExecutionEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TestExecutionEvent
impl Serialize for TestExecutionEvent
impl StructuralPartialEq for TestExecutionEvent
Auto Trait Implementations§
impl Freeze for TestExecutionEvent
impl RefUnwindSafe for TestExecutionEvent
impl Send for TestExecutionEvent
impl Sync for TestExecutionEvent
impl Unpin for TestExecutionEvent
impl UnsafeUnpin for TestExecutionEvent
impl UnwindSafe for TestExecutionEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more