pub struct RunStats {Show 19 fields
pub initial_run_count: usize,
pub finished_count: usize,
pub setup_scripts_initial_count: usize,
pub setup_scripts_finished_count: usize,
pub setup_scripts_passed: usize,
pub setup_scripts_failed: usize,
pub setup_scripts_exec_failed: usize,
pub setup_scripts_timed_out: usize,
pub passed: usize,
pub passed_slow: usize,
pub flaky: usize,
pub failed: usize,
pub failed_slow: usize,
pub timed_out: usize,
pub leaky: usize,
pub leaky_failed: usize,
pub exec_failed: usize,
pub skipped: usize,
pub cancel_reason: Option<CancelReason>,
}Expand description
Statistics for a test run.
Fields§
§initial_run_count: usizeThe total number of tests that were expected to be run at the beginning.
If the test run is cancelled, this will be more than finished_count at the end.
finished_count: usizeThe total number of tests that finished running.
setup_scripts_initial_count: usizeThe total number of setup scripts that were expected to be run at the beginning.
If the test run is cancelled, this will be more than finished_count at the end.
setup_scripts_finished_count: usizeThe total number of setup scripts that finished running.
setup_scripts_passed: usizeThe number of setup scripts that passed.
setup_scripts_failed: usizeThe number of setup scripts that failed.
setup_scripts_exec_failed: usizeThe number of setup scripts that encountered an execution failure.
setup_scripts_timed_out: usizeThe number of setup scripts that timed out.
passed: usizeThe number of tests that passed. Includes passed_slow, flaky and leaky.
passed_slow: usizeThe number of slow tests that passed.
flaky: usizeThe number of tests that passed on retry.
failed: usizeThe number of tests that failed.
failed_slow: usizeThe number of failed tests that were slow.
timed_out: usizeThe number of tests that timed out.
leaky: usizeThe number of tests that passed but leaked handles.
leaky_failed: usizeThe number of tests that otherwise passed, but leaked handles and were treated as failed as a result.
exec_failed: usizeThe number of tests that encountered an execution failure.
skipped: usizeThe number of tests that were skipped.
cancel_reason: Option<CancelReason>If the run is cancelled, the reason the cancellation is happening.
Implementations§
Source§impl RunStats
impl RunStats
Sourcepub fn has_failures(&self) -> bool
pub fn has_failures(&self) -> bool
Returns true if there are any failures recorded in the stats.
Sourcepub fn failed_setup_script_count(&self) -> usize
pub fn failed_setup_script_count(&self) -> usize
Returns count of setup scripts that did not pass.
Sourcepub fn failed_count(&self) -> usize
pub fn failed_count(&self) -> usize
Returns count of tests that did not pass.
Sourcepub fn summarize_final(&self) -> FinalRunStats
pub fn summarize_final(&self) -> FinalRunStats
Summarizes the stats as an enum at the end of a test run.
Trait Implementations§
impl Copy for RunStats
impl Eq for RunStats
impl StructuralPartialEq for RunStats
Auto Trait Implementations§
impl Freeze for RunStats
impl RefUnwindSafe for RunStats
impl Send for RunStats
impl Sync for RunStats
impl Unpin for RunStats
impl UnwindSafe for RunStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg] or
a color-specific method, such as [OwoColorize::green], Read more§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg] or
a color-specific method, such as [OwoColorize::on_yellow], Read more