pub struct TestSummary {
pub test_name: String,
pub passed: bool,
pub total_assertions: usize,
pub passed_assertions: usize,
pub failed_assertions: usize,
pub duration_ms: f64,
pub phases: Vec<PhaseNode>,
pub failure_artifacts: Vec<String>,
pub event_stats: EventStats,
pub context: Option<TestContext>,
}Expand description
Per-test JSON summary produced by TestHarness.
Fields§
§test_name: StringName of the test.
passed: boolWhether the test passed overall.
total_assertions: usizeTotal assertions.
passed_assertions: usizePassed assertions.
failed_assertions: usizeFailed assertions.
duration_ms: f64Total duration in milliseconds.
phases: Vec<PhaseNode>Hierarchical phase tree.
failure_artifacts: Vec<String>Artifacts collected on failure (file paths).
event_stats: EventStatsEvent log statistics.
context: Option<TestContext>Structured test context (if provided).
Trait Implementations§
Source§impl Clone for TestSummary
impl Clone for TestSummary
Source§fn clone(&self) -> TestSummary
fn clone(&self) -> TestSummary
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 TestSummary
impl Debug for TestSummary
Auto Trait Implementations§
impl Freeze for TestSummary
impl RefUnwindSafe for TestSummary
impl Send for TestSummary
impl Sync for TestSummary
impl Unpin for TestSummary
impl UnwindSafe for TestSummary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).