Progmasoft Git

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

Cleanup IStreamingReporter::listTests

Commit
7111b2a8e232e4a35bd63d772ae889d05185797a
Author
Martin Hořeňovský ·
Parents
5509ceff608a

Files · Download .tar.gz

Changes

 src/catch2/interfaces/catch_interfaces_reporter.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/catch2/interfaces/catch_interfaces_reporter.cpp b/src/catch2/interfaces/catch_interfaces_reporter.cpp
index 1fd6b6d1..a2a8bebf 100644
--- a/src/catch2/interfaces/catch_interfaces_reporter.cpp
+++ b/src/catch2/interfaces/catch_interfaces_reporter.cpp
@@ -186,10 +186,10 @@ namespace Catch {
             }
         }
 
-        if (!m_config->hasTestFilters()) {
-            Catch::cout() << pluralise(tests.size(), "test case") << '\n' << std::endl;
-        } else {
+        if (m_config->hasTestFilters()) {
             Catch::cout() << pluralise(tests.size(), "matching test case") << '\n' << std::endl;
+        } else {
+            Catch::cout() << pluralise(tests.size(), "test case") << '\n' << std::endl;
         }
     }