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
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.
pub fn add_test_suites(
&mut self,
test_suites: impl IntoIterator<Item = TestSuite>
) -> &mut Self
pub fn add_test_suites(
&mut self,
test_suites: impl IntoIterator<Item = TestSuite>
) -> &mut Self
Adds several TestSuite
s 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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Report
impl UnwindSafe for Report
Blanket Implementations
Mutably borrows from an owned value. Read more