catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Allow specifying default reporter at compile time
- Commit
5da76bb7be3b05c83b70bbd6e9a766a14cc54e6f- Author
- Martin Hořeňovský ·
- Parents
11295a26634f
Changes
include/catch_session.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/catch_session.hpp b/include/catch_session.hpp index d31896c7..61b99049 100644 --- a/include/catch_session.hpp +++ b/include/catch_session.hpp @@ -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 )