pub struct Test {Show 24 fields
pub start: Option<u64>,
pub stop: Option<u64>,
pub suite: Vec<String>,
pub message: Option<String>,
pub trace: Option<String>,
pub snippet: Option<String>,
pub ai: Option<String>,
pub raw_status: Option<String>,
pub tags: Vec<String>,
pub test_type: Option<String>,
pub file_path: Option<PathBuf>,
pub line: Option<usize>,
pub retries: Option<usize>,
pub flaky: Option<bool>,
pub stdout: Vec<String>,
pub stderr: Vec<String>,
pub thread_id: Option<String>,
pub browser: Option<String>,
pub device: Option<String>,
pub screenshot: Option<String>,
pub parameters: HashMap<String, Value>,
pub steps: Vec<Step>,
pub attachments: Vec<Attachment>,
pub insights: Option<TestInsights>,
/* private fields */
}Expand description
Test element for a CTRF report. Corresponds to the spec’s “Test” object.
Fields§
§start: Option<u64>§stop: Option<u64>§suite: Vec<String>§message: Option<String>§trace: Option<String>§snippet: Option<String>§ai: Option<String>§raw_status: Option<String>§test_type: Option<String>§file_path: Option<PathBuf>§line: Option<usize>§retries: Option<usize>§flaky: Option<bool>§stdout: Vec<String>§stderr: Vec<String>§thread_id: Option<String>§browser: Option<String>§device: Option<String>§screenshot: Option<String>§parameters: HashMap<String, Value>§steps: Vec<Step>§attachments: Vec<Attachment>§insights: Option<TestInsights>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Test
impl<'de> Deserialize<'de> for Test
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 Extra for Test
impl Extra for Test
Source§fn insert_extra(&mut self, key: String, value: Value) -> Option<Value>
fn insert_extra(&mut self, key: String, value: Value) -> Option<Value>
Inserts an element into the Extra map. Returns the value that it replaced, if one was present, or None if not.
impl StructuralPartialEq for Test
Auto Trait Implementations§
impl Freeze for Test
impl RefUnwindSafe for Test
impl Send for Test
impl Sync for Test
impl Unpin for Test
impl UnwindSafe for Test
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