[][src]Struct junit_report::TestSuite

pub struct TestSuite {
    pub name: String,
    pub package: String,
    pub timestamp: DateTime<Utc>,
    pub hostname: String,
    pub testcases: Vec<TestCase>,
    pub system_out: Option<String>,
    pub system_err: Option<String>,
}

A TestSuite groups together several TestCases.

Fields

name: Stringpackage: Stringtimestamp: DateTime<Utc>hostname: Stringtestcases: 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]

Add several TestCases 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

impl Clone for TestSuite[src]

impl Debug for TestSuite[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.