pub struct RunRecord {
pub timestamp: String,
pub total: usize,
pub passed: usize,
pub failed: usize,
pub skipped: usize,
pub duration_ms: u64,
pub exit_code: i32,
pub tests: Vec<TestRecord>,
}Expand description
A single recorded test run.
Fields§
§timestamp: StringISO 8601 timestamp
total: usizeTotal number of tests
passed: usizeNumber of passed tests
failed: usizeNumber of failed tests
skipped: usizeNumber of skipped tests
duration_ms: u64Total duration in milliseconds
exit_code: i32Exit code
tests: Vec<TestRecord>Individual test results (name -> status + duration_ms)
Implementations§
Source§impl RunRecord
impl RunRecord
Sourcepub fn from_result(result: &TestRunResult) -> Self
pub fn from_result(result: &TestRunResult) -> Self
Create a RunRecord from a TestRunResult.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunRecord
impl<'de> Deserialize<'de> for RunRecord
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
Auto Trait Implementations§
impl Freeze for RunRecord
impl RefUnwindSafe for RunRecord
impl Send for RunRecord
impl Sync for RunRecord
impl Unpin for RunRecord
impl UnsafeUnpin for RunRecord
impl UnwindSafe for RunRecord
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