MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/TriangleMeshDistance / writeGroup

Method writeGroup

tests/catch.hpp:13810–13830  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 5

getCurrentTimestampFunction · 0.85
trimFunction · 0.85
scopedElementMethod · 0.80
totalMethod · 0.80
showDurationsMethod · 0.80

Tested by

no test coverage detected