Switch back to uncolored output after printing filters
After printing the list of filters, switch back from yellow to black
before printing a newline to avoid the remaining output to be colored in
yellow.
diff --git a/include/reporters/catch_reporter_console.cpp b/include/reporters/catch_reporter_console.cpp
index 97290c6..a20ff52 100644
--- a/include/reporters/catch_reporter_console.cpp
+++ b/include/reporters/catch_reporter_console.cpp
@@ -680,8 +680,11 @@
}
void ConsoleReporter::printTestFilters() {
- if (m_config->testSpec().hasFilters())
- stream << Colour(Colour::BrightYellow) << "Filters: " << serializeFilters( m_config->getTestsOrTags() ) << '\n';
+ if (m_config->testSpec().hasFilters()) {
+ stream << Colour(Colour::BrightYellow)
+ << "Filters: " << serializeFilters(m_config->getTestsOrTags())
+ << Colour(Colour::None) << '\n';
+ }
}
CATCH_REGISTER_REPORTER("console", ConsoleReporter)