pub enum TestOutcome {
Passed,
Failed,
Skipped,
Error,
}Expand description
The outcome status of a test execution.
Tests can have four possible outcomes:
| Outcome | Description | Affects CI? |
|---|---|---|
| Passed | Test assertions succeeded | No |
| Failed | Test assertions failed | Yes |
| Skipped | Test was not run (intentionally) | No |
| Error | Test crashed or setup failed | Yes |
Variants§
Passed
Test passed successfully.
All assertions succeeded and no errors occurred.
Failed
Test failed due to an assertion.
The test ran but an assertion/expectation was not met.
Skipped
Test was skipped and not executed.
May be due to markers, conditions, or explicit skip calls.
Error
Test errored during setup, execution, or teardown.
Unlike Failed, this indicates the test couldn’t complete
normally (e.g., exception in fixtures, infrastructure failure).
Trait Implementations§
Source§impl Clone for TestOutcome
impl Clone for TestOutcome
Source§fn clone(&self) -> TestOutcome
fn clone(&self) -> TestOutcome
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 TestOutcome
impl Debug for TestOutcome
Source§impl<'de> Deserialize<'de> for TestOutcome
impl<'de> Deserialize<'de> for TestOutcome
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
Source§impl PartialEq for TestOutcome
impl PartialEq for TestOutcome
Source§impl Serialize for TestOutcome
impl Serialize for TestOutcome
impl Copy for TestOutcome
impl Eq for TestOutcome
impl StructuralPartialEq for TestOutcome
Auto Trait Implementations§
impl Freeze for TestOutcome
impl RefUnwindSafe for TestOutcome
impl Send for TestOutcome
impl Sync for TestOutcome
impl Unpin for TestOutcome
impl UnsafeUnpin for TestOutcome
impl UnwindSafe for TestOutcome
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.