pub struct TestResult {
pub test_id: String,
pub outcome: TestOutcome,
pub duration: Duration,
pub stdout: String,
pub stderr: String,
pub error_message: Option<String>,
pub stack_trace: Option<String>,
pub group: String,
}Expand description
The result of executing a single test.
Contains the test outcome, timing, captured output, and any error details. Test results are collected by the orchestrator and passed to reporters.
§Serialization
Results can be serialized for caching, logging, or transmission.
Fields§
§test_id: StringThe ID of the test that was executed.
outcome: TestOutcomeThe outcome of the test execution.
duration: DurationWall-clock time the test took to execute.
stdout: StringCaptured standard output from the test.
May be empty if output capture is disabled or unsupported.
stderr: StringCaptured standard error from the test.
error_message: Option<String>Human-readable error message for failed tests.
Typically the assertion message or exception description.
stack_trace: Option<String>Full stack trace for failed tests.
Provides detailed debugging information for failures.
group: StringGroup name this test belongs to (for JUnit testsuite grouping).
Implementations§
Source§impl TestResult
impl TestResult
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 · 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