pub struct RunSummary {
pub outcomes: Vec<ScenarioOutcome>,
pub passed: usize,
pub failed: usize,
pub skipped: usize,
pub cancelled: bool,
}Expand description
Aggregate result of a run.
Fields§
§outcomes: Vec<ScenarioOutcome>Per-scenario outcomes, in completion order.
passed: usizeScenarios that passed (warnings allowed).
failed: usizeScenarios that failed.
skipped: usizeScenarios skipped (cancellation).
cancelled: boolThe run was cancelled (Ctrl-C / token) — some scenarios did not run.
Implementations§
Source§impl RunSummary
impl RunSummary
Sourcepub fn exit_code(&self) -> ExitCode
pub fn exit_code(&self) -> ExitCode
The run’s exit code: system faults dominate, then user faults, then
test failures (ADR-0009). A cancelled run is never Success — the
suite did not pass; it was interrupted (folds in as a test failure).
Sourcepub fn exit_code_excluding(&self, non_gating: &[(String, String)]) -> ExitCode
pub fn exit_code_excluding(&self, non_gating: &[(String, String)]) -> ExitCode
Self::exit_code, treating the given (file, name) scenarios as
non-gating (@quarantine): their test-failures no longer count toward
the exit code, but a System/User fault still does — quarantine is for
flaky tests, not broken input or infra.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunSummary
impl RefUnwindSafe for RunSummary
impl Send for RunSummary
impl Sync for RunSummary
impl Unpin for RunSummary
impl UnsafeUnpin for RunSummary
impl UnwindSafe for RunSummary
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