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.
This commit is contained in:
Till Hofmann 2020-02-10 14:52:35 +01:00 committed by Martin Hořeňovský
parent b7b346c3e5
commit 3a15315a37

View File

@ -680,8 +680,11 @@ void ConsoleReporter::printSummaryDivider() {
} }
void ConsoleReporter::printTestFilters() { void ConsoleReporter::printTestFilters() {
if (m_config->testSpec().hasFilters()) if (m_config->testSpec().hasFilters()) {
stream << Colour(Colour::BrightYellow) << "Filters: " << serializeFilters( m_config->getTestsOrTags() ) << '\n'; stream << Colour(Colour::BrightYellow)
<< "Filters: " << serializeFilters(m_config->getTestsOrTags())
<< Colour(Colour::None) << '\n';
}
} }
CATCH_REGISTER_REPORTER("console", ConsoleReporter) CATCH_REGISTER_REPORTER("console", ConsoleReporter)