mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Allow specifying default reporter at compile time
This commit is contained in:
		| @@ -32,10 +32,14 @@ namespace Catch { | ||||
|         return reporter; | ||||
|     } | ||||
|  | ||||
| #ifndef CATCH_CONFIG_DEFAULT_REPORTER | ||||
| #define CATCH_CONFIG_DEFAULT_REPORTER "console" | ||||
| #endif | ||||
|  | ||||
|     IStreamingReporterPtr makeReporter( std::shared_ptr<Config> const& config ) { | ||||
|         auto const& reporterNames = config->getReporterNames(); | ||||
|         if( reporterNames.empty() ) | ||||
|             return createReporter( "console", config ); | ||||
|             return createReporter(CATCH_CONFIG_DEFAULT_REPORTER, config ); | ||||
|  | ||||
|         IStreamingReporterPtr reporter; | ||||
|         for( auto const& name : reporterNames ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský