Struct IStreamingReporter

Synopsis

#include <include/internal/catch_interfaces_reporter.h>

struct IStreamingReporter

Description

No description yet.

Methods

~IStreamingReporter
assertionEnded
assertionStarting
benchmarkEnded
benchmarkFailed
benchmarkPreparing
benchmarkStarting
fatalErrorEncountered
getPreferences
isMulti
noMatchingTestCases
reportInvalidArguments
sectionEnded
sectionStarting
skipTest
testCaseEnded
testCaseStarting
testGroupEnded
testGroupStarting
testRunEnded
testRunStarting

Source

Lines 206-248 in include/internal/catch_interfaces_reporter.h.

struct IStreamingReporter {
    virtual ~IStreamingReporter() = default;
    // Implementing class must also provide the following static methods:
    // static std::string getDescription();
    // static std::set<Verbosity> getSupportedVerbosities()
    virtual ReporterPreferences getPreferences() const = 0;
    virtual void noMatchingTestCases( std::string const& spec ) = 0;
    virtual void reportInvalidArguments(std::string const&) {}

    virtual void testRunStarting( TestRunInfo const& testRunInfo ) = 0;
    virtual void testGroupStarting( GroupInfo const& groupInfo ) = 0;
    virtual void testCaseStarting( TestCaseInfo const& testInfo ) = 0;
    virtual void sectionStarting( SectionInfo const& sectionInfo ) = 0;
defined(CATCH_CONFIG_ENABLE_BENCHMARKING)
    virtual void benchmarkPreparing( std::string const& ) {}
    virtual void benchmarkStarting( BenchmarkInfo const& ) {}
    virtual void benchmarkEnded( BenchmarkStats<> const& ) {}
    virtual void benchmarkFailed( std::string const& ) {}
if // CATCH_CONFIG_ENABLE_BENCHMARKING
    virtual void assertionStarting( AssertionInfo const& assertionInfo ) = 0;
    // The return value indicates if the messages buffer should be cleared:
    virtual bool assertionEnded( AssertionStats const& assertionStats ) = 0;
    virtual void sectionEnded( SectionStats const& sectionStats ) = 0;
    virtual void testCaseEnded( TestCaseStats const& testCaseStats ) = 0;
    virtual void testGroupEnded( TestGroupStats const& testGroupStats ) = 0;
    virtual void testRunEnded( TestRunStats const& testRunStats ) = 0;
    virtual void skipTest( TestCaseInfo const& testInfo ) = 0;
    // Default empty implementation provided
    virtual void fatalErrorEncountered( StringRef name );
    virtual bool isMulti() const;
};





Add Discussion as Guest

Log in