pub struct TestResult {
pub test_name: String,
pub passed: bool,
pub duration_ms: u64,
pub stdout: Option<String>,
pub stderr: Option<String>,
pub exit_code: Option<i32>,
pub env: Option<HashMap<String, String>>,
pub terminal_info: Option<TerminalInfo>,
pub logs: Vec<TestLogEntry>,
}Expand description
Aggregated test result for summary output.
Fields§
§test_name: StringName of the test.
passed: boolWhether the test passed.
duration_ms: u64Total duration in milliseconds.
stdout: Option<String>Captured stdout (if any).
stderr: Option<String>Captured stderr (if any).
exit_code: Option<i32>Exit code (for command-based tests).
env: Option<HashMap<String, String>>Environment variables at test time.
terminal_info: Option<TerminalInfo>Terminal information.
logs: Vec<TestLogEntry>All log entries for this test.
Trait Implementations§
Source§impl Clone for TestResult
impl Clone for TestResult
Source§fn clone(&self) -> TestResult
fn clone(&self) -> TestResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TestResult
impl Debug for TestResult
Source§impl<'de> Deserialize<'de> for TestResult
impl<'de> Deserialize<'de> for TestResult
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 TestResult
impl RefUnwindSafe for TestResult
impl Send for TestResult
impl Sync for TestResult
impl Unpin for TestResult
impl UnsafeUnpin for TestResult
impl UnwindSafe for TestResult
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