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 Freeze for TestSuite
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