pub struct TestCase {
pub time: f64,
pub name: String,
pub status: TestStatus,
pub original_name: String,
pub classname: Option<String>,
pub group: Option<String>,
pub file: Option<String>,
pub line: Option<u64>,
pub system_out: Option<String>,
pub system_err: Option<String>,
pub properties: Properties,
pub reruns: Vec<RerunOrFlaky>,
}
Expand description
A test case
Fields§
§time: f64
How long the test case took to run, from the time
attribute
name: String
Name of the test case, from the name
attribute
If there is a classname
attribute, store it as classname::name
Otherwise if there is a group
attribute, store it as group::name
See TestCase::original_name
for the original name
status: TestStatus
Status of the test case
original_name: String
Original name, from the name
attribute
classname: Option<String>
Class name, from the classname
attribute
group: Option<String>
Group name, from the group
attribute
file: Option<String>
File source code of the test
line: Option<u64>
Related line in the source code
system_out: Option<String>
stdout output from the system-out
element
system_err: Option<String>
stderr output from the system-err
element
properties: Properties
Properties of the test case
reruns: Vec<RerunOrFlaky>
Reruns of the test case
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TestCase
impl<'de> Deserialize<'de> for TestCase
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 TestCase
impl RefUnwindSafe for TestCase
impl Send for TestCase
impl Sync for TestCase
impl Unpin for TestCase
impl UnwindSafe for TestCase
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