mirror of
https://github.com/catchorg/Catch2.git
synced 2025-11-03 13:39:32 +01:00
Reference to legacy reporter adapter localised to one place
This commit is contained in:
@@ -45,12 +45,10 @@ namespace Catch {
|
||||
std::vector<TestCaseFilters>::const_iterator it = filterGroups.begin();
|
||||
std::vector<TestCaseFilters>::const_iterator itEnd = filterGroups.end();
|
||||
|
||||
LegacyReporterAdapter reporter( m_reporter, ReporterConfig( m_configWrapper.stream(), m_config ) );
|
||||
|
||||
for(; it != itEnd && !context.aborting(); ++it ) {
|
||||
reporter.testGroupStarting( it->getName() );
|
||||
context.testGroupStarting( it->getName() );
|
||||
totals += runTestsForGroup( context, *it );
|
||||
reporter.testGroupEnded( TestGroupStats( it->getName(), totals, context.aborting() ) );
|
||||
context.testGroupEnded( it->getName(), totals );
|
||||
}
|
||||
return totals;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user