diff options
| author | Martin Hořeňovský | 2020-11-26 09:43:52 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-11-26 09:45:28 +0100 |
| commit | c673db7a4ec250fd41a8f19a7dd0b0dbf0608dd2 (patch) | |
| tree | e23465820ced9b653c64d75ad4c56fbfa6356b68 /src/catch2 | |
| parent | b10a19545b55c78c517f0fe9dbb16d80e118d28b (diff) | |
| download | catch3-c673db7a4ec250fd41a8f19a7dd0b0dbf0608dd2.tar.gz | |
Add explanatory comment to CumulativeReporterBase
Diffstat (limited to 'src/catch2')
| -rw-r--r-- | src/catch2/reporters/catch_reporter_cumulative_base.hpp | 3 |
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; |