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

Add explanatory comment to CumulativeReporterBase

Commit
c673db7a4ec250fd41a8f19a7dd0b0dbf0608dd2
Author
Martin Hořeňovský ·
Parents
b10a19545b55

Files · Download .tar.gz

Changes

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

diff --git a/src/catch2/reporters/catch_reporter_cumulative_base.hpp b/src/catch2/reporters/catch_reporter_cumulative_base.hpp
index 26c62ef5..94b4c589 100644
--- a/src/catch2/reporters/catch_reporter_cumulative_base.hpp
+++ b/src/catch2/reporters/catch_reporter_cumulative_base.hpp
@@ -64,12 +64,15 @@ namespace Catch {
         void testCaseEnded( TestCaseStats const& testCaseStats ) override;
         void testGroupEnded( TestGroupStats const& testGroupStats ) override;
         void testRunEnded( TestRunStats const& testRunStats ) override;
+        //! Customization point: called after last test finishes (testRunEnded has been handled)
         virtual void testRunEndedCumulative() = 0;
 
         void skipTest(TestCaseInfo const&) override {}
 
         IConfig const* m_config;
         std::ostream& stream;
+        // Note: We rely on pointer identity being stable, which is why
+        //       which is why we store around pointers rather than values.
         std::vector<std::shared_ptr<TestCaseNode>> m_testCases;
         std::vector<std::shared_ptr<TestGroupNode>> m_testGroups;