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

Always output final summary - even if no errors

Commit
f4548505e2c7e1cf99dada26b12e10cd980efa26
Author
Phil Nash ·
Parents
3eb41eed6dbf

Files · Download .tar.gz

Changes

 catch_reporter_basic.hpp | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/catch_reporter_basic.hpp b/catch_reporter_basic.hpp
index d5bd64af..add09b60 100644
--- a/catch_reporter_basic.hpp
+++ b/catch_reporter_basic.hpp
@@ -92,12 +92,10 @@ namespace Catch
             std::size_t failed
         )
         {
-            if( m_testingSpan.emitted )
-            {
-                m_config.stream() << "[Testing completed. ";
-                ReportCounts( succeeded, failed );
-                m_config.stream() << "]" << std::endl;
-            }
+            // Output the overall test results even if "Started Testing" was not emitted
+            m_config.stream() << "[Testing completed. ";
+            ReportCounts( succeeded, failed );
+            m_config.stream() << "]" << std::endl;
         }
         
         ///////////////////////////////////////////////////////////////////////////