Enum quick_junit::TestCaseStatus [−][src]
pub enum TestCaseStatus {
Success {
flaky_runs: Vec<TestRerun>,
},
NonSuccess {
kind: NonSuccessKind,
message: Option<String>,
ty: Option<String>,
description: Option<String>,
reruns: Vec<TestRerun>,
},
Skipped {
message: Option<String>,
ty: Option<String>,
description: Option<String>,
},
}
Expand description
Represents the success or failure of a test case.
Variants
Success
Fields
This test case passed.
NonSuccess
Fields
kind: NonSuccessKind
Whether this test case failed in an expected way (failure) or an unexpected way (error).
This test case did not pass.
Skipped
Fields
This test case was not run.
Implementations
Creates a new TestCaseStatus
that represents an unsuccessful test.
Sets the message. No-op if this is a success case.
Sets the type. No-op if this is a success case.
Sets the description (text node). No-op if this is a success case.
Adds a rerun or flaky run. No-op if this test was skipped.
Adds reruns or flaky runs. No-op if this test was skipped.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TestCaseStatus
impl Send for TestCaseStatus
impl Sync for TestCaseStatus
impl Unpin for TestCaseStatus
impl UnwindSafe for TestCaseStatus
Blanket Implementations
Mutably borrows from an owned value. Read more