Streaming reporter interface is now used natively.

Legacy reporters are adapted by their factories.
This commit is contained in:
Phil Nash
2012-11-30 19:15:23 +00:00
parent 7f04b56738
commit 4e12e12c1f
6 changed files with 46 additions and 23 deletions

View File

@@ -24,7 +24,7 @@ namespace Catch{
// Scoped because Runner doesn't report EndTesting until its destructor
{
Runner runner( config, m_reporter.get() );
Runner runner( config, new LegacyReporterAdapter( m_reporter.get(), ReporterConfig( config.stream(), config.data() ) ) );
totals = runner.runMatching( rawTestSpec );
}
m_output = oss.str();