pub struct TestRunSummary {
pub total: usize,
pub passed: usize,
pub failed: usize,
pub ignored: usize,
pub exec_time_secs: f64,
pub results: Vec<TestResult>,
}Expand description
Aggregated results from a test run
Fields§
§total: usizeTotal tests run
passed: usizeTests passed
failed: usizeTests failed
ignored: usizeTests ignored
exec_time_secs: f64Total execution time in seconds
results: Vec<TestResult>Individual test results
Implementations§
Source§impl TestRunSummary
impl TestRunSummary
Sourcepub fn all_passed(&self) -> bool
pub fn all_passed(&self) -> bool
Check if all tests passed
Sourcepub fn failing_tests(&self) -> Vec<&TestResult>
pub fn failing_tests(&self) -> Vec<&TestResult>
Get failing tests
Trait Implementations§
Source§impl Clone for TestRunSummary
impl Clone for TestRunSummary
Source§fn clone(&self) -> TestRunSummary
fn clone(&self) -> TestRunSummary
Returns a duplicate of the value. Read more
1.0.0 · 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 TestRunSummary
impl Debug for TestRunSummary
Source§impl<'de> Deserialize<'de> for TestRunSummary
impl<'de> Deserialize<'de> for TestRunSummary
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 TestRunSummary
impl RefUnwindSafe for TestRunSummary
impl Send for TestRunSummary
impl Sync for TestRunSummary
impl Unpin for TestRunSummary
impl UnwindSafe for TestRunSummary
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