Previous implementation didn't work

It relied on calling a virtual method from a base constructer
This commit is contained in:
Baruch Burstein
2017-07-09 12:46:53 +03:00
parent f749347523
commit 058b21e604
11 changed files with 27 additions and 41 deletions

View File

@@ -77,10 +77,12 @@ namespace Catch {
TestCaseStats::~TestCaseStats() {}
TestGroupStats::~TestGroupStats() {}
TestRunStats::~TestRunStats() {}
CumulativeReporterBase::SectionNode::~SectionNode() {}
CumulativeReporterBase::~CumulativeReporterBase() {}
StreamingReporterBase::~StreamingReporterBase() {}
template<typename DerivedT>
CumulativeReporterBase<DerivedT>::SectionNode::~SectionNode() {}
template<typename DerivedT>
CumulativeReporterBase<DerivedT>::~CumulativeReporterBase() {}
template<typename DerivedT>
StreamingReporterBase<DerivedT>::~StreamingReporterBase() {}
ConsoleReporter::~ConsoleReporter() {}
CompactReporter::~CompactReporter() {}
IRunner::~IRunner() {}

View File

@@ -208,13 +208,12 @@ namespace Catch
struct IStreamingReporter {
virtual ~IStreamingReporter();
// Implementing class must also provide the following static method:
// Implementing class must also provide the following static methods:
// static std::string getDescription();
// static std::set<Verbosity> getSupportedVerbosities()
virtual ReporterPreferences getPreferences() const = 0;
virtual std::set<Verbosity> const& getSupportedVerbosities() const = 0;
virtual void noMatchingTestCases( std::string const& spec ) = 0;
virtual void testRunStarting( TestRunInfo const& testRunInfo ) = 0;