Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-11-26 09:43:52 +0100
committerMartin Hořeňovský2020-11-26 09:45:28 +0100
commitc673db7a4ec250fd41a8f19a7dd0b0dbf0608dd2 (patch)
treee23465820ced9b653c64d75ad4c56fbfa6356b68
parentb10a19545b55c78c517f0fe9dbb16d80e118d28b (diff)
downloadcatch3-c673db7a4ec250fd41a8f19a7dd0b0dbf0608dd2.tar.gz
Add explanatory comment to CumulativeReporterBase
-rw-r--r--src/catch2/reporters/catch_reporter_cumulative_base.hpp3
1 files changed, 3 insertions, 0 deletions
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;