Struct quick_junit::Report[][src]

pub struct Report {
    pub name: String,
    pub timestamp: Option<DateTime<FixedOffset>>,
    pub time: Option<Duration>,
    pub tests: usize,
    pub failures: usize,
    pub errors: usize,
    pub test_suites: Vec<TestSuite>,
}
Expand description

The root element of a JUnit report.

Fields

name: String

The name of this report.

timestamp: Option<DateTime<FixedOffset>>

The time at which the first test in this report began execution.

This is not part of the JUnit spec, but may be useful for some tools.

time: Option<Duration>

The overall time taken by the test suite.

This is serialized as the number of seconds.

tests: usize

The total number of tests from all TestSuites.

failures: usize

The total number of failures from all TestSuites.

errors: usize

The total number of errors from all TestSuites.

test_suites: Vec<TestSuite>

The test suites contained in this report.

Implementations

Creates a new Report with the given name.

Sets the start timestamp for the report.

Sets the time taken for overall execution.

Adds a new TestSuite and updates the tests, failures and errors counts.

When generating a new report, use of this method is recommended over adding to self.TestSuites directly.

Adds several TestSuites and updates the tests, failures and errors counts.

When generating a new report, use of this method is recommended over adding to self.TestSuites directly.

Serialize this report to the given writer.

Serialize this report to a string.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

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

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.