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 60cfaa38fb
commit 6badd7d9ed
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -679,8 +679,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';
}
} }
} // end namespace Catch } // end namespace Catch