Struct junit_report::TestSuite
source · pub struct TestSuite {
pub name: String,
pub package: String,
pub timestamp: OffsetDateTime,
pub hostname: String,
pub testcases: Vec<TestCase>,
pub system_out: Option<String>,
pub system_err: Option<String>,
}
Expand description
A TestSuite
groups together several TestCase
s.
Fields§
§name: String
§package: String
§timestamp: OffsetDateTime
§hostname: String
§testcases: Vec<TestCase>
§system_out: Option<String>
§system_err: Option<String>
Implementations§
source§impl TestSuite
impl TestSuite
Auto-generated by derive_getters::Getters
.
sourcepub fn timestamp(&self) -> &OffsetDateTime
pub fn timestamp(&self) -> &OffsetDateTime
Get field timestamp
from instance of TestSuite
.
sourcepub fn system_out(&self) -> &Option<String>
pub fn system_out(&self) -> &Option<String>
Get field system_out
from instance of TestSuite
.
sourcepub fn system_err(&self) -> &Option<String>
pub fn system_err(&self) -> &Option<String>
Get field system_err
from instance of TestSuite
.
source§impl TestSuite
impl TestSuite
sourcepub fn add_testcase(&mut self, testcase: TestCase)
pub fn add_testcase(&mut self, testcase: TestCase)
Add a TestCase
to the TestSuite
.
sourcepub fn add_testcases(&mut self, testcases: impl IntoIterator<Item = TestCase>)
pub fn add_testcases(&mut self, testcases: impl IntoIterator<Item = TestCase>)
Add several TestCase
s from a Vec.
sourcepub fn set_timestamp(&mut self, timestamp: OffsetDateTime)
pub fn set_timestamp(&mut self, timestamp: OffsetDateTime)
Set the timestamp of the given TestSuite
.
By default the timestamp is set to the time when the TestSuite
was created.
pub fn set_system_out(&mut self, system_out: &str)
pub fn set_system_err(&mut self, system_err: &str)
pub fn tests(&self) -> usize
pub fn errors(&self) -> usize
pub fn failures(&self) -> usize
pub fn skipped(&self) -> usize
pub fn time(&self) -> Duration
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for TestSuite
impl Send for TestSuite
impl Sync for TestSuite
impl Unpin for TestSuite
impl UnwindSafe for TestSuite
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