pub enum TestEvent {
TestStart {
node_id: String,
},
TestFinish {
node_id: String,
outcome: Outcome,
duration_ms: u64,
stdout: Option<String>,
stderr: Option<String>,
},
CollectionStart,
ItemCollected {
node_id: String,
file_path: String,
line_number: Option<u32>,
markers: Vec<String>,
},
CollectionFinish {
count: usize,
},
SessionStart {
test_count: usize,
},
SessionFinish {
exit_code: i32,
},
Warning {
message: String,
location: Option<String>,
},
}Expand description
Event emitted during test execution.
Variants§
TestStart
A test is about to start.
TestFinish
A test has completed.
Fields
CollectionStart
Collection is starting.
ItemCollected
A test file was collected.
Fields
CollectionFinish
Collection has finished.
SessionStart
Session is starting.
SessionFinish
Session has finished.
Warning
A warning was emitted.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TestEvent
impl<'de> Deserialize<'de> for TestEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for TestEvent
Auto Trait Implementations§
impl Freeze for TestEvent
impl RefUnwindSafe for TestEvent
impl Send for TestEvent
impl Sync for TestEvent
impl Unpin for TestEvent
impl UnwindSafe for TestEvent
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