[][src]Struct cargo_suity::junit::TestSuite

pub struct TestSuite {
    pub name: String,
    pub errors: u64,
    pub failures: u64,
    pub tests: u64,
    pub test_cases: Vec<TestCase>,
}

Fields

name: String

Name of the test suite

errors: u64

How many tests erred out. In rust we can't can't detect it :(

failures: u64

How many tests failed.

tests: u64

Total amount of tests

test_cases: Vec<TestCase>

Methods

impl TestSuite[src]

pub fn new(events: Vec<Event>, name: String) -> Result<TestSuite, SuityError>[src]

Create TestSuite from event stream. NOTE: Only works if event stream is related to a single testsuite. You have to run unit, doc and integration tests separately!

Trait Implementations

impl Eq for TestSuite[src]

impl PartialEq<TestSuite> for TestSuite[src]

impl Debug for TestSuite[src]

Auto Trait Implementations

impl Send for TestSuite

impl Sync for TestSuite

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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