Tightened up ReporterConfig and added it to LegacyReporterAdapter

This commit is contained in:
Phil Nash
2012-11-26 23:28:00 +00:00
parent f9d92634f5
commit 4b36001698
7 changed files with 109 additions and 117 deletions

View File

@@ -30,10 +30,10 @@ namespace Catch {
}
virtual void StartTesting() {
m_xml = XmlWriter( m_config.stream );
m_xml = XmlWriter( m_config.stream() );
m_xml.startElement( "Catch" );
if( !m_config.name.empty() )
m_xml.writeAttribute( "name", m_config.name );
if( !m_config.name().empty() )
m_xml.writeAttribute( "name", m_config.name() );
}
virtual void EndTesting( const Totals& totals ) {
@@ -76,7 +76,7 @@ namespace Catch {
}
virtual void Result( const Catch::AssertionResult& assertionResult ) {
if( !m_config.includeSuccessfulResults && assertionResult.getResultType() == ResultWas::Ok )
if( !m_config.includeSuccessfulResults() && assertionResult.getResultType() == ResultWas::Ok )
return;
if( assertionResult.hasExpression() ) {