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

Default-implement assertion* events in StreamingReporterBase

This means that a reporter deriving from `StreamingReporterBase`
does not have to override them if it isn't interested in the individual
assertions.
Commit
4dcf8382c70c25a3ccfbe5d9e37276adf7c6058f
Author
Martin Hořeňovský ·
Parents
efd8cc877740

Files · Download .tar.gz

Changes

 src/catch2/reporters/catch_reporter_streaming_base.hpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/catch2/reporters/catch_reporter_streaming_base.hpp b/src/catch2/reporters/catch_reporter_streaming_base.hpp
index ddd10c5e..c51595e6 100644
--- a/src/catch2/reporters/catch_reporter_streaming_base.hpp
+++ b/src/catch2/reporters/catch_reporter_streaming_base.hpp
@@ -55,6 +55,9 @@ namespace Catch {
             m_sectionStack.push_back(_sectionInfo);
         }
 
+        void assertionStarting( AssertionInfo const& ) override {}
+        bool assertionEnded( AssertionStats const& ) override { return true; }
+
         void sectionEnded(SectionStats const& /* _sectionStats */) override {
             m_sectionStack.pop_back();
         }