pub enum TestAnnotation {
Skip {
reason: Option<String>,
condition: Option<String>,
},
Slow {
reason: Option<String>,
condition: Option<String>,
},
Fixme {
reason: Option<String>,
condition: Option<String>,
},
Fail {
reason: Option<String>,
condition: Option<String>,
},
Only,
Tag(String),
Info {
type_name: String,
description: String,
},
}Variants§
Skip
Skip this test. Optional condition: "firefox", "chromium", "linux", "ci", "!webkit".
When condition is None, always skips. When condition is Some, skips only if condition matches.
Slow
Triple the timeout for this test (×3). Optional condition + description.
Matches Playwright’s test.slow() / test.slow(condition, description).
Fixme
Known bug — skip with intent to fix. Same condition semantics as Skip.
Matches Playwright’s test.fixme() / test.fixme(condition, description).
Fail
Expect this test to fail (inverts pass/fail). Optional condition + description.
Matches Playwright’s test.fail() / test.fail(condition, description).
Only
Tag(String)
Info
Structured metadata: type + description (e.g., issue/JIRA-1234, severity/critical).
Trait Implementations§
Source§impl Clone for TestAnnotation
impl Clone for TestAnnotation
Source§fn clone(&self) -> TestAnnotation
fn clone(&self) -> TestAnnotation
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 TestAnnotation
impl Debug for TestAnnotation
Source§impl<'de> Deserialize<'de> for TestAnnotation
impl<'de> Deserialize<'de> for TestAnnotation
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 TestAnnotation
impl RefUnwindSafe for TestAnnotation
impl Send for TestAnnotation
impl Sync for TestAnnotation
impl Unpin for TestAnnotation
impl UnsafeUnpin for TestAnnotation
impl UnwindSafe for TestAnnotation
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: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more