diff options
| author | Martin Hořeňovský | 2022-04-04 21:07:04 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2022-04-07 12:50:08 +0200 |
| commit | 423e1d2ebbd75bb92cb486f83f2c5800b4b9689e (patch) | |
| tree | 3cfff7f75517b1771ab43c7439ba195a77dcec31 /tests/SelfTest/IntrospectiveTests/Reporters.tests.cpp | |
| parent | 3c06bcb374aaebf91ad1d63aba655dee66cf7b91 (diff) | |
| download | catch3-423e1d2ebbd75bb92cb486f83f2c5800b4b9689e.tar.gz | |
Integrate the new reporter specs into Catch2
This means that the CLI interface now uses the new key-value oriented
reporter spec, the common reporter base creates the colour implementation
based on the reporter-specific configuration, and it also stores the
custom configuration options for each reporter instance.
Closes #339 as it allows per-reporter forcing of ansi colour codes.
Diffstat (limited to 'tests/SelfTest/IntrospectiveTests/Reporters.tests.cpp')
| -rw-r--r-- | tests/SelfTest/IntrospectiveTests/Reporters.tests.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/SelfTest/IntrospectiveTests/Reporters.tests.cpp b/tests/SelfTest/IntrospectiveTests/Reporters.tests.cpp index 92367915..890afe98 100644 --- a/tests/SelfTest/IntrospectiveTests/Reporters.tests.cpp +++ b/tests/SelfTest/IntrospectiveTests/Reporters.tests.cpp @@ -89,7 +89,8 @@ TEST_CASE( "Reporter's write listings to provided stream", "[reporters]" ) { Catch::ConfigData config_data; Catch::Config config( config_data ); - Catch::ReporterConfig rep_config( &config, &sstream ); + Catch::ReporterConfig rep_config( + &config, &sstream, Catch::ColourMode::None, {} ); auto reporter = factory.second->create( rep_config ); DYNAMIC_SECTION( factory.first << " reporter lists tags" ) { @@ -176,7 +177,8 @@ TEST_CASE("Multireporter calls reporters and listeners in correct order", Catch::ConfigData config_data; Catch::Config config( config_data ); StringIStream sstream; - Catch::ReporterConfig rep_config( &config, &sstream ); + Catch::ReporterConfig rep_config( + &config, &sstream, Catch::ColourMode::None, {} ); // We add reporters before listeners, to check that internally they // get sorted properly, and listeners are called first anyway. @@ -229,7 +231,8 @@ TEST_CASE("Multireporter updates ReporterPreferences properly", Catch::ConfigData config_data; Catch::Config config( config_data ); StringIStream sstream; - Catch::ReporterConfig rep_config( &config, &sstream ); + Catch::ReporterConfig rep_config( + &config, &sstream, Catch::ColourMode::None, {} ); Catch::MultiReporter multiReporter( &config ); // Post init defaults |