mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-01 21:05:39 +02:00
merge from upstream
This commit is contained in:
@@ -168,9 +168,9 @@ namespace Catch {
|
||||
Ptr<TestRunNode> node = new TestRunNode( testRunStats );
|
||||
node->children.swap( m_testGroups );
|
||||
m_testRuns.push_back( node );
|
||||
testRunEnded();
|
||||
testRunEndedCumulative();
|
||||
}
|
||||
virtual void testRunEnded() = 0;
|
||||
virtual void testRunEndedCumulative() = 0;
|
||||
|
||||
Ptr<IConfig> m_config;
|
||||
std::ostream& stream;
|
||||
|
@@ -70,7 +70,7 @@ namespace Catch {
|
||||
writeGroup( *m_testGroups.back(), suiteTime );
|
||||
}
|
||||
|
||||
virtual void testRunEnded() {
|
||||
virtual void testRunEndedCumulative() {
|
||||
xml.endElement();
|
||||
}
|
||||
|
||||
|
@@ -59,7 +59,7 @@ namespace Catch {
|
||||
virtual void StartSection( const std::string& sectionName, const std::string& description ) {
|
||||
if( m_sectionDepth++ > 0 ) {
|
||||
m_xml.startElement( "Section" )
|
||||
.writeAttribute( "name", sectionName )
|
||||
.writeAttribute( "name", trim( sectionName ) )
|
||||
.writeAttribute( "description", description );
|
||||
}
|
||||
}
|
||||
@@ -76,7 +76,7 @@ namespace Catch {
|
||||
}
|
||||
|
||||
virtual void StartTestCase( const Catch::TestCaseInfo& testInfo ) {
|
||||
m_xml.startElement( "TestCase" ).writeAttribute( "name", testInfo.name );
|
||||
m_xml.startElement( "TestCase" ).writeAttribute( "name", trim( testInfo.name ) );
|
||||
m_currentTestSuccess = true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user