Struct junit_parser::TestCase
source · 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,
}Expand description
A test case
Fields§
§time: f64How long the test case took to run, from the time attribute
name: StringName 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: TestStatusStatus of the test case
original_name: StringOriginal 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: PropertiesProperties 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)