20 m_listeners.push_back( std::move( listener ) );
24 assert(!m_reporter &&
"Listening reporter can wrap only 1 real reporter");
25 m_reporter = std::move( reporter );
34 return std::set<Verbosity>{ };
39 for (
auto const& listener : m_listeners ) {
40 listener->noMatchingTestCases( spec );
42 m_reporter->noMatchingTestCases( spec );
46 for (
auto const& listener : m_listeners ) {
47 listener->benchmarkStarting( benchmarkInfo );
49 m_reporter->benchmarkStarting( benchmarkInfo );
52 for (
auto const& listener : m_listeners ) {
53 listener->benchmarkEnded( benchmarkStats );
55 m_reporter->benchmarkEnded( benchmarkStats );
59 for (
auto const& listener : m_listeners ) {
60 listener->testRunStarting( testRunInfo );
62 m_reporter->testRunStarting( testRunInfo );
66 for (
auto const& listener : m_listeners ) {
67 listener->testGroupStarting( groupInfo );
69 m_reporter->testGroupStarting( groupInfo );
74 for (
auto const& listener : m_listeners ) {
75 listener->testCaseStarting( testInfo );
77 m_reporter->testCaseStarting( testInfo );
81 for (
auto const& listener : m_listeners ) {
82 listener->sectionStarting( sectionInfo );
84 m_reporter->sectionStarting( sectionInfo );
88 for (
auto const& listener : m_listeners ) {
89 listener->assertionStarting( assertionInfo );
91 m_reporter->assertionStarting( assertionInfo );
96 for(
auto const& listener : m_listeners ) {
97 static_cast<void>( listener->assertionEnded( assertionStats ) );
99 return m_reporter->assertionEnded( assertionStats );
103 for (
auto const& listener : m_listeners ) {
104 listener->sectionEnded( sectionStats );
106 m_reporter->sectionEnded( sectionStats );
110 for (
auto const& listener : m_listeners ) {
111 listener->testCaseEnded( testCaseStats );
113 m_reporter->testCaseEnded( testCaseStats );
117 for (
auto const& listener : m_listeners ) {
118 listener->testGroupEnded( testGroupStats );
120 m_reporter->testGroupEnded( testGroupStats );
124 for (
auto const& listener : m_listeners ) {
125 listener->testRunEnded( testRunStats );
127 m_reporter->testRunEnded( testRunStats );
132 for (
auto const& listener : m_listeners ) {
133 listener->skipTest( testInfo );
135 m_reporter->skipTest( testInfo );
void addReporter(IStreamingReporterPtr &&reporter)
bool assertionEnded(AssertionStats const &assertionStats) override
void testGroupStarting(GroupInfo const &groupInfo) override
void testCaseStarting(TestCaseInfo const &testInfo) override
void testRunStarting(TestRunInfo const &testRunInfo) override
void benchmarkStarting(BenchmarkInfo const &benchmarkInfo) override
void skipTest(TestCaseInfo const &testInfo) override
void sectionEnded(SectionStats const §ionStats) override
bool isMulti() const override
void testCaseEnded(TestCaseStats const &testCaseStats) override
void testGroupEnded(TestGroupStats const &testGroupStats) override
void noMatchingTestCases(std::string const &spec) override
ReporterPreferences getPreferences() const override
void assertionStarting(AssertionInfo const &assertionInfo) override
static std::set< Verbosity > getSupportedVerbosities()
void testRunEnded(TestRunStats const &testRunStats) override
void addListener(IStreamingReporterPtr &&listener)
void sectionStarting(SectionInfo const §ionInfo) override
void benchmarkEnded(BenchmarkStats const &benchmarkStats) override
std::unique_ptr< IStreamingReporter > IStreamingReporterPtr
bool shouldReportAllAssertions
bool shouldRedirectStdOut