pub struct StepOutcome {
pub step: StepRef,
pub status: Status,
pub attempts: u32,
pub duration: Duration,
pub detail: Option<String>,
pub attempt_details: Vec<String>,
pub reproduce_hint: Option<String>,
pub fragment: Option<String>,
}Expand description
Per-step result reported by an engine.
Fields§
§step: StepRefAnchor to the authored feature line.
status: StatusOutcome status.
attempts: u32Number of attempts made (≥ 1 once the step ran).
duration: DurationWall-clock duration of all attempts.
detail: Option<String>Engine-specific detail (assert message, timing breakdown, …).
attempt_details: Vec<String>Messages from earlier, failed attempts of a step that ultimately passed — the flaky-failure detail. Empty for a clean single-attempt step; engine-agnostic, so any engine with retries can fill it.
reproduce_hint: Option<String>Engine-provided command to reproduce this step alone (engine-hurl fills
it with the redacted curl of the failing request). Set only on failure;
None otherwise and for engines that offer no hint.
fragment: Option<String>The fragment this step ran, copied from LoweredStep::fragment
(ADR-0018); None for an inline block.
Carried on the outcome as well as the event because the two feed
different readers: the event stream reaches explain, while JUnit and
the GitHub summary are built from crate::runner::RunSummary. CI is
where a reader is least able to go looking, so it is the last place
provenance should drop out.
Trait Implementations§
Source§impl Clone for StepOutcome
impl Clone for StepOutcome
Source§fn clone(&self) -> StepOutcome
fn clone(&self) -> StepOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more