| 13808 | } |
| 13809 | |
| 13810 | void JunitReporter::writeGroup( TestGroupNode const& groupNode, double suiteTime ) { |
| 13811 | XmlWriter::ScopedElement e = xml.scopedElement( "testsuite" ); |
| 13812 | TestGroupStats const& stats = groupNode.value; |
| 13813 | xml.writeAttribute( "name", stats.groupInfo.name ); |
| 13814 | xml.writeAttribute( "errors", unexpectedExceptions ); |
| 13815 | xml.writeAttribute( "failures", stats.totals.assertions.failed-unexpectedExceptions ); |
| 13816 | xml.writeAttribute( "tests", stats.totals.assertions.total() ); |
| 13817 | xml.writeAttribute( "hostname", "tbd" ); // !TBD |
| 13818 | if( m_config->showDurations() == ShowDurations::Never ) |
| 13819 | xml.writeAttribute( "time", "" ); |
| 13820 | else |
| 13821 | xml.writeAttribute( "time", suiteTime ); |
| 13822 | xml.writeAttribute( "timestamp", getCurrentTimestamp() ); |
| 13823 | |
| 13824 | // Write test cases |
| 13825 | for( auto const& child : groupNode.children ) |
| 13826 | writeTestCase( *child ); |
| 13827 | |
| 13828 | xml.scopedElement( "system-out" ).writeText( trim( stdOutForSuite ), false ); |
| 13829 | xml.scopedElement( "system-err" ).writeText( trim( stdErrForSuite ), false ); |
| 13830 | } |
| 13831 | |
| 13832 | void JunitReporter::writeTestCase( TestCaseNode const& testCaseNode ) { |
| 13833 | TestCaseStats const& stats = testCaseNode.value; |
nothing calls this directly
no test coverage detected