Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
catch_reporter_listening.h
Go to the documentation of this file.
1/*
2 * Created by Martin on 19/07/2017.
3 *
4 * Distributed under the Boost Software License, Version 1.0. (See accompanying
5 * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 */
7#ifndef TWOBLUECUBES_CATCH_MULTI_REPORTER_H_INCLUDED
8#define TWOBLUECUBES_CATCH_MULTI_REPORTER_H_INCLUDED
9
11
12namespace Catch {
13
15 using Reporters = std::vector<IStreamingReporterPtr>;
16 Reporters m_listeners;
17 IStreamingReporterPtr m_reporter = nullptr;
18 ReporterPreferences m_preferences;
19
20 public:
22
23 void addListener( IStreamingReporterPtr&& listener );
24 void addReporter( IStreamingReporterPtr&& reporter );
25
26 public: // IStreamingReporter
27
28 ReporterPreferences getPreferences() const override;
29
30 void noMatchingTestCases( std::string const& spec ) override;
31
32 static std::set<Verbosity> getSupportedVerbosities();
33
34 void benchmarkStarting( BenchmarkInfo const& benchmarkInfo ) override;
35 void benchmarkEnded( BenchmarkStats const& benchmarkStats ) override;
36
37 void testRunStarting( TestRunInfo const& testRunInfo ) override;
38 void testGroupStarting( GroupInfo const& groupInfo ) override;
39 void testCaseStarting( TestCaseInfo const& testInfo ) override;
40 void sectionStarting( SectionInfo const& sectionInfo ) override;
41 void assertionStarting( AssertionInfo const& assertionInfo ) override;
42
43 // The return value indicates if the messages buffer should be cleared:
44 bool assertionEnded( AssertionStats const& assertionStats ) override;
45 void sectionEnded( SectionStats const& sectionStats ) override;
46 void testCaseEnded( TestCaseStats const& testCaseStats ) override;
47 void testGroupEnded( TestGroupStats const& testGroupStats ) override;
48 void testRunEnded( TestRunStats const& testRunStats ) override;
49
50 void skipTest( TestCaseInfo const& testInfo ) override;
51 bool isMulti() const override;
52
53 };
54
55} // end namespace Catch
56
57#endif // TWOBLUECUBES_CATCH_MULTI_REPORTER_H_INCLUDED
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 &sectionStats) 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 &sectionInfo) override
void benchmarkEnded(BenchmarkStats const &benchmarkStats) override
std::unique_ptr< IStreamingReporter > IStreamingReporterPtr