[−][src]Struct junit_report::TestSuite
A TestSuite
groups together several TestCase
s.
Fields
name: String
package: String
timestamp: DateTime<Utc>
hostname: String
testcases: Vec<TestCase>
system_out: Option<String>
system_err: Option<String>
Implementations
impl TestSuite
[src]
pub fn name(&self) -> &String
[src]
pub fn package(&self) -> &String
[src]
pub fn timestamp(&self) -> &DateTime<Utc>
[src]
pub fn hostname(&self) -> &String
[src]
pub fn testcases(&self) -> &Vec<TestCase>
[src]
pub fn system_out(&self) -> &Option<String>
[src]
pub fn system_err(&self) -> &Option<String>
[src]
impl TestSuite
[src]
pub fn new(name: &str) -> Self
[src]
Create a new TestSuite
with a given name
pub fn add_testcase(self, testcase: TestCase) -> Self
[src]
Add a TestCase
to the TestSuite
.
pub fn add_testcases(
self,
testcases: impl IntoIterator<Item = TestCase>
) -> Self
[src]
self,
testcases: impl IntoIterator<Item = TestCase>
) -> Self
Add several TestCase
s from a Vec.
pub fn set_timestamp(self, timestamp: DateTime<Utc>) -> Self
[src]
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(self, system_out: &str) -> Self
[src]
pub fn set_system_err(self, system_err: &str) -> Self
[src]
pub fn tests(&self) -> usize
[src]
pub fn errors(&self) -> usize
[src]
pub fn failures(&self) -> usize
[src]
pub fn time(&self) -> Duration
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,