catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Different approach to proper colouring of filters
- Commit
95a2e547027cbf17f97f3ba3c2fd2465894eb250- Author
- Martin Hořeňovský ·
- Parents
6badd7d9ed96
Changes
src/catch2/reporters/catch_reporter_console.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/catch2/reporters/catch_reporter_console.cpp b/src/catch2/reporters/catch_reporter_console.cpp index 65021ed7..8dc2227c 100644 --- a/src/catch2/reporters/catch_reporter_console.cpp +++ b/src/catch2/reporters/catch_reporter_console.cpp @@ -680,9 +680,8 @@ void ConsoleReporter::printSummaryDivider() { void ConsoleReporter::printTestFilters() { if (m_config->testSpec().hasFilters()) { - stream << Colour(Colour::BrightYellow) - << "Filters: " << serializeFilters(m_config->getTestsOrTags()) - << Colour(Colour::None) << '\n'; + Colour guard(Colour::BrightYellow); + stream << "Filters: " << serializeFilters(m_config->getTestsOrTags()) << '\n'; } }