Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2
diff options
context:
space:
mode:
authorTill Hofmann2020-02-10 14:52:35 +0100
committerMartin Hořeňovský2020-04-29 21:28:18 +0200
commit6badd7d9ed96cad01ef093ff68fc95fea550ba4c (patch)
tree60c4d97aced2a11ea9ff9d0ddc9f1e9b439cc3e7 /src/catch2
parent60cfaa38fbd7a9a0fa2366e70367aef3696efc73 (diff)
downloadcatch3-6badd7d9ed96cad01ef093ff68fc95fea550ba4c.tar.gz
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.
Diffstat (limited to 'src/catch2')
-rw-r--r--src/catch2/reporters/catch_reporter_console.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/catch2/reporters/catch_reporter_console.cpp b/src/catch2/reporters/catch_reporter_console.cpp
index bd016144..65021ed7 100644
--- a/src/catch2/reporters/catch_reporter_console.cpp
+++ b/src/catch2/reporters/catch_reporter_console.cpp
@@ -679,8 +679,11 @@ void ConsoleReporter::printSummaryDivider() {
}
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';
+ }
}
} // end namespace Catch