Struct junit_report::Report [−][src]
pub struct Report { /* fields omitted */ }
Root element of a JUnit report
Methods
impl Report
[src]
impl Report
pub fn new() -> Report
[src]
pub fn new() -> Report
Create a new empty Report
pub fn add_testsuite(&mut self, testsuite: TestSuite)
[src]
pub fn add_testsuite(&mut self, testsuite: TestSuite)
Add a TestSuite
to this report.
The function takes ownership of the supplied TestSuite.
pub fn add_testsuites(&mut self, testsuites: &mut Vec<TestSuite>)
[src]
pub fn add_testsuites(&mut self, testsuites: &mut Vec<TestSuite>)
Add multiple TestSuite
s from a Vec
pub fn write_xml<W: Write>(self, sink: W) -> Result<()>
[src]
pub fn write_xml<W: Write>(self, sink: W) -> Result<()>
Write the XML version of the Report to the given Writer