| 12282 | } |
| 12283 | |
| 12284 | void JunitReporter::writeGroup( TestGroupNode const& groupNode, double suiteTime ) { |
| 12285 | XmlWriter::ScopedElement e = xml.scopedElement( "testsuite" ); |
| 12286 | TestGroupStats const& stats = groupNode.value; |
| 12287 | xml.writeAttribute( "name", stats.groupInfo.name ); |
| 12288 | xml.writeAttribute( "errors", unexpectedExceptions ); |
| 12289 | xml.writeAttribute( "failures", stats.totals.assertions.failed-unexpectedExceptions ); |
| 12290 | xml.writeAttribute( "tests", stats.totals.assertions.total() ); |
| 12291 | xml.writeAttribute( "hostname", "tbd" ); // !TBD |
| 12292 | if( m_config->showDurations() == ShowDurations::Never ) |
| 12293 | xml.writeAttribute( "time", "" ); |
| 12294 | else |
| 12295 | xml.writeAttribute( "time", suiteTime ); |
| 12296 | xml.writeAttribute( "timestamp", getCurrentTimestamp() ); |
| 12297 | |
| 12298 | // Write test cases |
| 12299 | for( auto const& child : groupNode.children ) |
| 12300 | writeTestCase( *child ); |
| 12301 | |
| 12302 | xml.scopedElement( "system-out" ).writeText( trim( stdOutForSuite ), false ); |
| 12303 | xml.scopedElement( "system-err" ).writeText( trim( stdErrForSuite ), false ); |
| 12304 | } |
| 12305 | |
| 12306 | void JunitReporter::writeTestCase( TestCaseNode const& testCaseNode ) { |
| 12307 | TestCaseStats const& stats = testCaseNode.value; |
nothing calls this directly
no test coverage detected