mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-25 22:19:25 +00:00
Resolve reporter outside of Config
config now only only holds reporter name
This commit is contained in:
parent
8fbd8e0f9e
commit
5d73c5a008
7 changed files with 80 additions and 85 deletions
|
@ -20,14 +20,11 @@ namespace Catch{
|
|||
Config config;
|
||||
config.setStreamBuf( oss.rdbuf() );
|
||||
|
||||
//if( reporter == "mock" ) // !TBD
|
||||
config.setReporter( m_reporter.get() );
|
||||
|
||||
std::size_t result;
|
||||
|
||||
// Scoped because Runner doesn't report EndTesting until its destructor
|
||||
{
|
||||
Runner runner( config, config.getReporter() );
|
||||
Runner runner( config, m_reporter.get() );
|
||||
result = runner.runMatching( rawTestSpec );
|
||||
m_totals = runner.getTotals();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue