mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-23 05:46:11 +01:00
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:
parent
b7b346c3e5
commit
3a15315a37
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user