Progmasoft Git

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

Different approach to proper colouring of filters

Commit
5561d0342dfbfb6882361aeb519bbdfb49fa6eb8
Author
Martin Hořeňovský ·
Parents
3a15315a37c1

Files · Download .tar.gz

Changes

 include/reporters/catch_reporter_console.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/include/reporters/catch_reporter_console.cpp b/include/reporters/catch_reporter_console.cpp
index a20ff527..706f93f8 100644
--- a/include/reporters/catch_reporter_console.cpp
+++ b/include/reporters/catch_reporter_console.cpp
@@ -681,9 +681,8 @@ void ConsoleReporter::printSummaryDivider() {
 
 void ConsoleReporter::printTestFilters() {
     if (m_config->testSpec().hasFilters()) {
-        stream << Colour(Colour::BrightYellow)
-               << "Filters: " << serializeFilters(m_config->getTestsOrTags())
-               << Colour(Colour::None) << '\n';
+        Colour guard(Colour::BrightYellow);
+        stream << "Filters: " << serializeFilters(m_config->getTestsOrTags()) << '\n';
     }
 }